From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6592648938739728384 X-Received: by 2002:a1c:6705:: with SMTP id b5-v6mr702369wmc.31.1535027364584; Thu, 23 Aug 2018 05:29:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f70e:: with SMTP id v14-v6ls1074797wmh.5.gmail; Thu, 23 Aug 2018 05:29:24 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdaqv1LtiE4Y88hnciOd218QzZfufH2g+QiM+1k2Lo3P1XaouubRafcoR+McwB2voirHrhVF X-Received: by 2002:a1c:99cf:: with SMTP id b198-v6mr739608wme.14.1535027364129; Thu, 23 Aug 2018 05:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535027364; cv=none; d=google.com; s=arc-20160816; b=HqtVeQp5iFKbkfqL15e4cmRnC/mudf6q+BZOXDLO6R22VjSht1K0ILZatoTc/x8WWU Ag3CsGj1ZZvRmI+K/szHKC/L4Ti+WJv8ItOZ8evrPaRL3yOEA1/gbBTmHzgumXzvg9bg 9aWKQ2N6H5kA45O+neOG7NHe8qnRDNoq3uyobRh2tcMygaumJjDLJdmGsUbfPFa9U/Nt 5XJOhNWjmsOW//372m53GIfTQHo5BjaS2Jaa5Rs+wrCZ08n+1wSE5ZsDAq3FIGDGxvsh kdC1hHULEOnVTXnn+WNqljPP2GUkbpHtpLzAaBGI6ES5gTM8I8rPlwoTXbY6PP6siEBL z59Q== 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:from:references:to:subject :arc-authentication-results; bh=Az+gfFjK5yAxUvVHmoo9sxaS1d5A3Pcm0zqOsSXmcT8=; b=DuRegXZaBdowdPH7WiSGBZ8Sp22q3F9/DT+kxiOcZTgloNZ1HEfbHAGLDtYe82Upnu 8XvEJ3Zb87QcTpg06jihsQ+cTbezIjCp7TC0/V1twsSksjOC3wuapRAtdJCHsgplvux8 Y9glWrGXVgdha1bYG4e7VhnBYiICclEWfvOdAuO3aD2/pK53jCVq2sfBqOr4XNlWG98y FftYJtoT+Dv4+6vXknxRXHgYPu+tzSGuwAp45YzZJGUtpxT0RF5ifeVsHca2PpelxEp9 gjpbF+MMsjwb8GDiRTB1wSVMReZht7wSL65pBb/SQmlf5zGoQjHDtnpVsW76gFXlC4Ii aYnQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id 20-v6si131425wrb.5.2018.08.23.05.29.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 05:29:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w7NCTNEH002504 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 23 Aug 2018 14:29:23 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w7NCTNSw007957 for ; Thu, 23 Aug 2018 14:29:23 +0200 Subject: Re: [PATCH v3] wic-image: Fix up file ownership in isar repo after wic run To: isar-users References: <20180823122641.237d3oob2yd7373r@MD1KR9XC.ww002.siemens.net> From: Jan Kiszka Message-ID: <1eaa7390-2466-bd3b-5fe0-4423f2689190@siemens.com> Date: Thu, 23 Aug 2018 14:29:22 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20180823122641.237d3oob2yd7373r@MD1KR9XC.ww002.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 3U2AF+7nalsI On 2018-08-23 14:26, [ext] Christian Storm wrote: > Hi Jan, > >> This prevents needlessly leaving the __pycache__ directories root-owned >> behind after running wic as superuser - will only cause troubles to the >> user when trying to clean up the isar repo. > > Hm, why not avoid creating those in the first place? I doubt that the > binary cache brings us that much performance benefit in our use cases. > Granted, you have to put/inject > export PYTHONDONTWRITEBYTECODE=1 > into *all* environments calling python so that not bothering with it at > all and removing/chown'ing them post-mortem might be easier or less > invasive.. Well.... Currently, that does not hurt (tried that first), but I wasn't sure about third-party plugins or future upstream stuff. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux