From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6750187537661165568 X-Received: by 2002:a17:906:8319:: with SMTP id j25mr2171012ejx.170.1573837251670; Fri, 15 Nov 2019 09:00:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:590b:: with SMTP id h11ls350974ejq.10.gmail; Fri, 15 Nov 2019 09:00:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyzSH1LbuIV5wNW7xtTgbJJ9ofTrkpt7QM0k5/b+loK+Vli7aub8gldMfUk2y/OEZnPk/nt X-Received: by 2002:a17:906:8591:: with SMTP id v17mr2239015ejx.185.1573837248849; Fri, 15 Nov 2019 09:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573837247; cv=none; d=google.com; s=arc-20160816; b=xBMewtZFUrM42uwB9IvYaNXhVGv+pzXXxP/WnK3PsYxKH5DoEplZ0v+3zNv6gDLVOJ dhuH8HURufcyV72aVoN0qJ79akG2HyzJThoxb0248Spf87bW1bRz7a9h9hX7r1+L+gnc Cg3ef8W26gs8nC+pr2X9Q36x+0lH3zDDHJyViv5kNAO4Bp9fddDAHt1usA4VxTBzd7+y W3J4Xc18cMHCVWCwAZAY5waavVhY/qG4q3GkT1dEtYUDrvlDN/+qB/SSMUQwycgMY8in bMJe/SYAhq8K95wYkaNT1jljnZNNMVQzHMvsIhXkb2YZUFtcRMXXucqqRJsvUMyF/a34 KlWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=4XiS/X3C/Y5a+VPyqOREbdaU7+wvnrBwMhehBbTAuN0=; b=W8HfXuPsjXzrMybRqcSIq3VWZbrL51FFVpr3yDCCqGyJfnngTIeOoPbj9jBj1tSCKi F2EcoqoP8F8SJWILVYrMJ8yOl663FTJYYcN0lUa844/mRGiZ6u65u2THDYe4HKgjgSO4 3s0rP8dwSwOXioN3ELKeUrrDr3wcdsTHfWglFe6Y9nFTFiRbr6uiqa4gI8nN9SSAK0oY NmlDz5uSN24Lnfo/dUbxjy08ipW46jqNhlfQs6yewGYR1P74ZrX26j8kli2weCmX0KnS vpkhOLD5Q7N+IY8KF8LJnS5HP/SuRiuDEr9cRSnkR2xc9fW3ySWtDddswS/+Pb34HVii bYvA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id l37si795693edc.2.2019.11.15.09.00.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Nov 2019 09:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: mwOm0QWjSeuu7uzRMwRNnAiSxzg7jAwaCB7HqnjROuBWxICl8ROx8TLKQaObEiYszyJe3F4ZGf rXb6aAfpMMPuyO6x5zBF756Yiyz+xfakP8dGebkU49ZWp36hGI3/5elzUjg6BB8LJgQTPbSs+W cX9shzVnm6uQTxIn/hYzMGdqTAWhPeplR5cOG3AakMvFN1nWOZZ+8qUda3wvDRrKS7rcJQnMZa YILgfmoC/VYTVCtFrAsJ8KMQabm4+RJbdsWAsn8O9Fm6Om7W+R7NHLj49M00FiDKIlyfpjMLAy /vQ= X-IronPort-AV: E=Sophos;i="5.68,308,1569312000"; d="scan'208";a="43259334" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 15 Nov 2019 09:00:45 -0800 IronPort-SDR: iEIX/iBB8dVrtkEIxE4b+9how3je4By23d3QLt0jpnetBNYyyov5g/MMBh2WT65Uo6N86XZYxc qlS+fj5CZBQQccRkKHctOlY5DQXEhSdBXwNPnNKPdfAPJzW/M3dgmvXOxQBDjVp5d+4fdNlQUK PZcuX/YtQMK9MUOGiULGEj0sSDvqoMh03ZbOQsqjqR7mDTCvj7k75BxGO2g5xyRs9uheFSlgnE dQzWK5BQqmCzwvYhHd0/UMl4Jfm5oT6F8Mwnh+DhfvlmcbkubgJ6schiT8/Jage7kSXEbUP5uy yuk= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH v5 2/6] isar-bootstrap: wipe out previously created rootfs with --one-file-system Date: Fri, 15 Nov 2019 18:00:11 +0100 Message-ID: <1573837215-324-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573837215-324-1-git-send-email-Cedric_Hombourger@mentor.com> References: <26ab6076-157e-7573-919d-dfa7cb273b25@siemens.com> <1573837215-324-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: vhQnWpdIw3IK As a safety precaution and to prevent the accidental deletion of files from dangling bind mounts, remove the previously created rootfs with rm -rf --one-file-system Signed-off-by: Cedric Hombourger --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index b506f30..271892c 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -241,7 +241,7 @@ isar_bootstrap() { sudo -E -s <<'EOSUDO' set -e if [ ! -e "${DEPLOY_ISAR_BOOTSTRAP}" ]; then - rm -rf "${ROOTFSDIR}" + rm -rf --one-file-system "${ROOTFSDIR}" if [ ${IS_HOST} ]; then ${DEBOOTSTRAP} $debootstrap_args \ -- 2.20.1