From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6677870985578807296 X-Received: by 2002:adf:f74d:: with SMTP id z13mr1333217wrp.17.1554812999494; Tue, 09 Apr 2019 05:29:59 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:2341:: with SMTP id j62ls897105wmj.5.canary-gmail; Tue, 09 Apr 2019 05:29:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/O0p8EQ1eCrfnP7WnNBxf9E7jkGsh9u9pbTodd0fpiRvcVaNa41B+kn16WFJh3Yl0TRBY X-Received: by 2002:a1c:9645:: with SMTP id y66mr1792819wmd.3.1554812999099; Tue, 09 Apr 2019 05:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554812999; cv=none; d=google.com; s=arc-20160816; b=s1BiJoNtIAgEyS1FpdEzhoFd8pczV41dp1BqOr+dvXdrgJwhfpChMa78KXI00ciCoB FlOEemlsG6FFpjlI1NPLjc/qfXjE/hD0lLlOwppodJm/PNeppzCLaNvojb7fvPvW1ADG Ge01BcyQ/B9M1Ey6ZUKpOEkCkvsR3ZHM5XBybWDagl9hGZuYn4raNczWP+s6C2soeaO1 nka100kg1NBrLKiHbQzpQ54TF5594MoOm6BMouOo65BYoZ9TNtDdBbLmeTc7LFWRywnM eeAVSL8ybtXpguKZc2FM4JF8yt6exPTRBbk7dLPyTwrP2slaxvY01H4ZgRpXFH5dZ/Rr cyMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=tjTedJZJIYfScSPLILiZ+oUf7WGbR9BHkkyNprmI4hI=; b=Axnl+WBSMo1ybC4PNsmCwQQ77WzTUfzpKsIYCaPhqZApoPGqWobkOARgz9Jm4UN3/e Y4USasDXuNZDicvNt4njmfulBPyCGx8a4xp293fnFDR6vlzIgTnPsNesllSBwGlW9q19 /v+ffk6IDuGSlgOajKxxem7up6o1L43jS3xwIMbMs220VJgTaDRMvyDGRSkg6kW3su2R 7g1D6WQnBkAnqLXyqDh+wvYNDsurHvQGQgHvEEzrR4F1DMPx2Lu4FKmNtSo1TpcwRO2j 08JWXNHvHzH/VphnlzMYHdp3ebB38f2VpkEa8IpOfuV7sVZ/zz1oicrNFzAhgBa9iNQV gbAw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id p14si824561wmh.2.2019.04.09.05.29.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 05:29:59 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x39CTwxv013527 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Apr 2019 14:29:58 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x39CTvkB031413; Tue, 9 Apr 2019 14:29:58 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine , Andreas Reichel Subject: [PATCH v2 2/8] image.bbclass: limit `du` to only one file system Date: Tue, 9 Apr 2019 14:29:09 +0200 Message-Id: <20190409122915.14249-3-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409122915.14249-1-claudius.heine.ext@siemens.com> References: <20190409122915.14249-1-claudius.heine.ext@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: DLi18zPWUcHI From: Claudius Heine This prevents ready any mounted `/dev`, `/proc`, `/sys` paths. If they are still mounted. Signed-off-by: Claudius Heine Signed-off-by: Andreas Reichel --- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 8ae931c..e6e8542 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -87,7 +87,7 @@ def get_rootfs_size(d): rootfs_extra = int(d.getVar("ROOTFS_EXTRA", True)) output = subprocess.check_output( - ["sudo", "du", "-s", "--block-size=1k", d.getVar("IMAGE_ROOTFS", True)] + ["sudo", "du", "-xs", "--block-size=1k", d.getVar("IMAGE_ROOTFS", True)] ) base_size = int(output.split()[0]) -- 2.20.1