From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6600623552765886464 X-Received: by 2002:a7b:c215:: with SMTP id x21-v6mr210774wmi.4.1537897096813; Tue, 25 Sep 2018 10:38:16 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:554a:: with SMTP id g10-v6ls5487627wrw.10.gmail; Tue, 25 Sep 2018 10:38:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV63UG3xa8YzUGxP3Y79kyPJ+Xirpz+8qAq3SbxYmGZwDJAU6YzZ8BMu8udXA+XBfkagblDcB X-Received: by 2002:adf:ce85:: with SMTP id r5-v6mr245232wrn.6.1537897096437; Tue, 25 Sep 2018 10:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537897096; cv=none; d=google.com; s=arc-20160816; b=bQy7H07QdgH1d4qRenTOoNqyG18Wc+TDd07g4FpCHDaxgF+cPGldYGfs81O7r15Th+ QVFpIc1i2pHG2aM2HEDDTQadW7+eFhp445PO6xaQ7RVvYf24DJ4kLQSZlBBTTHixqAzq pMwqT/V8Fh1yl4qAotkarfReQSVs5gXw1N3MvVI1w+W68tIBhFN4tBHl0DXiv5GJr2pQ HocXSIpiPoFk3lRRI6Cp1gIPWR2k+1BfLSDEzp+dqF5aGTDeh8B7+2Gw5duvNSMWu/93 yHDZw08yF13oMdG9Q5Qrn53whHgdnRipnxbeHSaTh2l5YQCo01+mPgPJ+TRzKpQgWLHE ZFng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:references:to:subject; bh=aAJ+tbuH0RvpZvmEiDpHGUc6bA3A+vQ0AzpYLiA42hs=; b=dBHxL1w0eRkalnPBsSw5gOkobxdjPhfaTZJln+aMG2esa3mgE18HcScKlHcPVsBIBH 6azZQf2yvmyM1aZaxzH3VcaURrQry/TEm9OuWTuRyEbhg5dnWRXMeC7JfnZDrK51Sp71 sAa4KOMvWaGJJLtY8cYCp8LxLlmc++eP9oGT8g9ePXtp/gLvKQ5p9VuerJwFcNhJUnWu JFjdOYUD3Mn/V8nUm7ceTz6UgtKICuw05KheOecNxvU61ZaVTZnG6m0y46pxGkwASYTz WFsGNnk3MvjBuY31ByawE3TAoZEVPvd9lwIRFbHzMijZD+BW7Q2uqVt8bI+F/A3Q8Oly rnMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id z14-v6si94663wrh.4.2018.09.25.10.38.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 10:38:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w8PHc9t3017234 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 25 Sep 2018 19:38:11 +0200 Subject: Re: [PATCH] wic-img: Allow chown to fail To: Henning Schild , isar-users References: <20180913083027.2499-1-henning.schild@siemens.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <808aeda1-e788-1c84-56fc-106838afee67@ilbers.de> Date: Tue, 25 Sep 2018 20:38:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180913083027.2499-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: wofrU7VWTzSC On 9/13/18 11:30 AM, Henning Schild wrote: > f13b2bf71dd841 introduced chowning of possible python cache files. This > operation can fail if the file system where Isar resides is read-only, > in which case there will also be no python cache files. > > Simply allow this step to fail, even other failures would not be > problematic because it is a convenience thing to execute the chown. Applied to the 'next', Thanks, Maxim. > Signed-off-by: Henning Schild > --- > meta/classes/wic-img.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/wic-img.bbclass b/meta/classes/wic-img.bbclass > index 635fbbf..a58d05b 100644 > --- a/meta/classes/wic-img.bbclass > +++ b/meta/classes/wic-img.bbclass > @@ -75,7 +75,7 @@ do_wic_image() { > export MTOOLS_SKIP_CHECK=1 > > sudo -E chroot ${BUILDCHROOT_DIR} ${ISARROOT}/scripts/wic create ${WKS_FILE} --vars "${STAGING_DIR}/${MACHINE}/imgdata/" -o /tmp/ -e ${IMAGE_BASENAME} ${WIC_CREATE_EXTRA_ARGS} > - sudo chown -R $(stat -c "%U" ${ISARROOT}) ${ISARROOT}/meta ${ISARROOT}/meta-isar ${ISARROOT}/scripts > + sudo chown -R $(stat -c "%U" ${ISARROOT}) ${ISARROOT}/meta ${ISARROOT}/meta-isar ${ISARROOT}/scripts || true > cp -f `ls -t -1 ${BUILDCHROOT_DIR}/tmp/${WKS_FILE}*.direct | head -1` ${WIC_IMAGE_FILE} > } > > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov