From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6489319872694059008 X-Received: by 10.80.142.245 with SMTP id x50mr1657365edx.0.1510912985671; Fri, 17 Nov 2017 02:03:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.147.19 with SMTP id m19ls2053929eda.1.gmail; Fri, 17 Nov 2017 02:03:05 -0800 (PST) X-Google-Smtp-Source: AGs4zMbgpZInSUrNINWrMrKgJSekNXtPoEqpS6FVkCIy4IoODwdhwnWo7Cr7J0dSkwFPkDudllfA X-Received: by 10.80.201.7 with SMTP id o7mr1659998edh.3.1510912985278; Fri, 17 Nov 2017 02:03:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510912985; cv=none; d=google.com; s=arc-20160816; b=f/xouXzK9VwazyBYy3vLKE5Hp0n2IrJ7a27VKF6OItHLEyvsiNauMv7yVMJ3JZd2H2 /woIK91WzultKdv+KPB/w2ndocGcwS3lhKbgG6YLaK4LY+cPs0KHK8hjFfcCdgRIbI65 yFTfsnJyTJ/oSoyLXmTRPIxKMisIQMwfGydQkY3LkUPdzwKKruBLsern4NVGs50P8zt6 /4as6y7zK0DzvsXiXB5PtuG6sxgJ81SeGpIGuBEtOB6WTrQg+/EikfsSKvT7wuNGcqPT Bna6NgJIwOm9+7P5tYLVnoZu9LCWhH+Yox4ig2WcRk9D0a30chNuXJDFq4dlLKz2IiMK EBpA== 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=Awo4TWO2xEOlpvCbjYxWw/e2CjlDyoZEiGvvRm2dgho=; b=eM7lkmdbAMArZCSQZLUOJOjVe2JirxLBnRxWQxoMJpNkMM40Os3dgwmz3Pgx5LCmi3 AQy4kMVJfufDLyIAhfA5tMSfnna6Uk8iIAjWrb1Troar5eOshI+kSKB67xAq0KBNdsqF P1ISTxz9/jcO9aMwIJgCG5o6UqbMhnXGMvGvpVOkN+YlP+l1ILGq2cgCPJ6BDGYkEG2C /SZdki3OLi4LdI3t1SiBe2qBcRbKLL+FdIkN8+FHKwkf+/b9OVDakULdQnUi1rpxCpbT puDbJbouYLyYcGKLXbPNdxdKvSzg3Lth4t+lzWqDvNGIsqLTuLIN5b7Q9drY+nsNQHLT V3mw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id a23si92156edd.1.2017.11.17.02.03.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 02:03:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@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 asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vAHA310d021107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 17 Nov 2017 11:03:03 +0100 Subject: Re: [PATCH] isar-image-base: fix owner and group of /proc To: Christian Storm , isar-users@googlegroups.com References: <20171117095410.21640-1-christian.storm@siemens.com> From: Alexander Smirnov Message-ID: <38c5b090-d220-cd90-b215-aa0487086f51@ilbers.de> Date: Fri, 17 Nov 2017 13:02:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171117095410.21640-1-christian.storm@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: DtZ6lCT7xsRZ Hi, On 11/17/2017 12:54 PM, Christian Storm wrote: > Signed-off-by: Christian Storm > --- > meta-isar/recipes-core/images/isar-image-base.bb | 2 +- > meta/recipes-devtools/buildchroot/buildchroot.bb | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta-isar/recipes-core/images/isar-image-base.bb b/meta-isar/recipes-core/images/isar-image-base.bb > index c2150b1..a6906c6 100644 > --- a/meta-isar/recipes-core/images/isar-image-base.bb > +++ b/meta-isar/recipes-core/images/isar-image-base.bb > @@ -52,7 +52,7 @@ do_rootfs() { > -e 's|##ISAR_DISTRO_SUITE##|${DEBDISTRONAME}|g' \ > "${WORKDIR}/multistrap.conf.in" > "${WORKDIR}/multistrap.conf" > > - [ ! -d ${IMAGE_ROOTFS}/proc ] && install -d -m 555 ${IMAGE_ROOTFS}/proc > + [ ! -d ${IMAGE_ROOTFS}/proc ] && sudo install -d -o 0 -g 0 -m 555 ${IMAGE_ROOTFS}/proc What is the requirement for doing so? And what is the benefit? Alex > sudo mount -t proc none ${IMAGE_ROOTFS}/proc > _do_rootfs_cleanup() { > ret=$? > diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb > index 6a94733..f9bfae4 100644 > --- a/meta/recipes-devtools/buildchroot/buildchroot.bb > +++ b/meta/recipes-devtools/buildchroot/buildchroot.bb > @@ -52,7 +52,7 @@ do_build() { > -e 's|##DIR_HOOKS##|./'"$WORKDIR_REL"'/hooks_multistrap|g' \ > "${WORKDIR}/multistrap.conf.in" > "${WORKDIR}/multistrap.conf" > > - [ ! -d ${BUILDCHROOT_DIR}/proc ] && install -d -m 555 ${BUILDCHROOT_DIR}/proc > + [ ! -d ${BUILDCHROOT_DIR}/proc ] && sudo install -d -o 0 -g 0 -m 555 ${BUILDCHROOT_DIR}/proc > sudo mount -t proc none ${BUILDCHROOT_DIR}/proc > _do_build_cleanup() { > ret=$? >