From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6750187537661165568 X-Received: by 2002:a5b:3cf:: with SMTP id t15mr11289627ybp.5.1571670509997; Mon, 21 Oct 2019 08:08:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a25:5f51:: with SMTP id h17ls2024593ybm.15.gmail; Mon, 21 Oct 2019 08:08:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2kNasU2teRoK9JG2lnBg/21ZEy3Y7VE6Qf18CxFao0H4PXte4t6dH9sWBgXug46H0t6ve X-Received: by 2002:a25:76cd:: with SMTP id r196mr16373087ybc.446.1571670509626; Mon, 21 Oct 2019 08:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571670509; cv=none; d=google.com; s=arc-20160816; b=fMUFRmMIIIQFdw0yJLSbOvYJ8MxyYUZ0FnGzEberbT4dCkTJBh5sscjiuqbusfWSjp VpxzqL0qclRbT+0pJ3JmUaB/q/oAHpgY3SyHb+GXRf3fqxULksziIiptrof5C0Oe29g4 TlDnfJbxZIoXJxoU+Z0srqYx+/uqd+XEb4aJ7eHy318HXBS1PsiqfkzIvgYrHqLGXotv bA+qELhRUqTWTqKGd31I6Bf7y3/OsdcoJGmzuZb0/guLIa+k91xLCZgzTwrjTi1afbcI crlqCeQ7tCt4b7ZJ5X4fsp7loUI5htL075spGEgN3zuymUszFFet3cehn6OpGhjsAiNq jaEA== 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=6qWCxN+xaVrjKqKTEpG6E291K5SOyzQbXFXlQCOwlcU=; b=jgrIfu7221vtgCHdVU8MHSfzS+ZuGKALAu9uLKGmeq4iSioRRU+/iLzRR6KmJjLIWC u9BSHzgTQBavlxHT0am1j3KtVie396ws4sXsW8C72GFF31zLedpjweuhOqQrMDAdu+eq AEExduVQLhy8S/7lWJvGYNNB5AwIjq5PZFQT1J09i1yed07nBEPYCDvxBs8xcE1RAwFH 8lbZLWCg2tC0MJv4R3//gl0PRIi/eNIFD12qPIxJaFOBYMjqzQzwhUOi04gkaDw99ajp c7fAQ05zsb4oEcT+pJ1/RYJUTgTGfaKanZs3vdAaIr4Bh5X3am1YoeE8doUdtSt31jUS +75w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id t73si921797ybi.4.2019.10.21.08.08.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 08:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: A8gMUy+dEHUqQQL2CB335YXajCqZZU9wBbwRfNFTP/JGgAFj8U/L5C236LGCzobHCO8C9LNLVX TZvesZYwPAmOhE6aTy+NH+X8BtcU/P2kP5AJNqI9bcA3T5rhoo25XXUSmDDI/ccUf7h6ldlpWE 5AnnhzRheB9uosPF+VeyuWnfalfYHwSjYrVM5lT4CyTL6RgjnDptqH25KQZtJwO9tTz2l8iN/b m0fQQAnGcHmu991/KOgyyjX3R1RfllTJzVfIcRXPCdmqYqq50yaCCVcmNO7TD56zjEk1MbFYLn yuQ= X-IronPort-AV: E=Sophos;i="5.67,323,1566892800"; d="scan'208";a="42440866" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 21 Oct 2019 07:08:28 -0800 IronPort-SDR: Ky3d3mSkMwqw7t3YqrYQK1GrtwG6jX/HoI2lFkp+5Rn2Vag2SsALpnQvV+At4l6oE5mTewggWV 8AY1L6/2aMPhK3tEs+TbheLRyuaJrnzQqDhQgDRD0ouT5z1foSrtDk52LTRbDKScW+guIBojlZ +RKM6tjC/R8Jaiiw7WloZDPww35eHmw0j1OaZloiXbOy7Ovf7a/FME+WjTalbUm20WAfpxqnu8 3TEbhGkhrICmjiTWJKMupsqYtXgL1Yau6LhqjIeLDlSy7YldfpNj3z52FJqMBc5yt75h5IxPX8 Jv0= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH v2 2/5] isar-bootstrap: wipe out previously created rootfs with --one-file-system Date: Mon, 21 Oct 2019 17:08:09 +0200 Message-ID: <1571670492-767-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571670492-767-1-git-send-email-Cedric_Hombourger@mentor.com> References: <83f900e7-753a-5728-c7b9-5c2cf2733f2b@mentor.com> <1571670492-767-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-09.mgc.mentorg.com (139.181.222.9) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: sFsiAfyg3C5+ 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 1a58471..0fb033b 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -245,7 +245,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