From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6750187537661165568 X-Received: by 2002:a92:91d3:: with SMTP id e80mr35483997ill.77.1572958460023; Tue, 05 Nov 2019 04:54:20 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a6b:b6c1:: with SMTP id g184ls1291204iof.15.gmail; Tue, 05 Nov 2019 04:54:19 -0800 (PST) X-Google-Smtp-Source: APXvYqznkxgPpJmoGCFHhZD0eTIo6XLErFtBL3zDytmOjXnnMbh6qlVwakbEwnO1ZluH0yzOIz7c X-Received: by 2002:a6b:dd16:: with SMTP id f22mr2577187ioc.272.1572958459664; Tue, 05 Nov 2019 04:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572958459; cv=none; d=google.com; s=arc-20160816; b=i8YsCy2sOvmxKPOGdoI1UHb6EanNVhfnjr6byRakHQQoohRoVs9UqQXHfQ4gy8ZWon 3gEYTWaQiN7wrUCQHZY8yKkLYTMIkhQvURSoC24waniSbPovER1i0g5W0it6ye9QAwwG Wk5tLt9QstmNzUNyYqD5bbDmdRZK7WrPBwbAvyvviOSSbdlrLVxzUzoEFeJ91fJLwMnj PItVwj5GYcO7uddqYM3lSswvNX4/xblX8KZGoc6JlGpjVGcmGZ7auZwJQIOqwJadBtnK vFil/0+zvmfhS0yyMr2xyY8+RlPPeU/DloroQmTfFVCzuhK3+LPIgD6CZ86bJTXYDqUX tgbA== 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=FUkZTI8KL5Armkb1TrJ4zwhNyhUp/kXkBcsJBB43v5hyfax0VQd89ssZK12I3EVqEx k9SQAXW2tzEABn4qbvNxxAWovk/tlrUDj3b57KT0CkAGA2XtbrvCeHQlGBWvPnOJXxyJ RovGy2jW+9GmtyROjIurFj1NWCvwiRTnYxdlfLqE8gfFG2RwCcAf07e9FVYGt4K2tOK+ n9c5uZ8zBjzlDlw2omTFYAN/OpKCPLLHoCrOoxv8wXsphseR0VTpecOFHlGqW4JH2Wp8 /NDi7tAu6wvhpZvGzJCb7FaVuxYGowv9uSNY6/Kb6xdTRfs2Cbb4p+Wgil1Sfzp7rl3m 9SUw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id k11si1306691ilg.4.2019.11.05.04.54.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 04:54:19 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: URvRvqK9wFwaPNdYy8Fl9bN0osKZ1cA4imzmI5ZkC3jqwel9xeSTJskvNsKfosMdx3AVvOAPsO KuJxOjQ/GstIXK4MfrJ0orxn4Hmo4JsgSbsFsUq2WjdT2C8qrKHN5FGdI29wUpwQt4rEXrStXD TpWju26eqR8qqQLIXBh67INYucTBjV+e8bDo+SfCjij2STLgoCqXJkOap75wDmhj32YlxDu2+F HM29SRL4sd8+ynbzb5dFf62nwDBVm4X9yJY8FSHa0dARrDJ4vFET1QFNguGtS4yvfKzHNsmG53 GuY= X-IronPort-AV: E=Sophos;i="5.68,271,1569312000"; d="scan'208";a="42815800" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 05 Nov 2019 04:53:58 -0800 IronPort-SDR: r6JnML6ZR23Zcou4YXxS5dTrHndQJiv7krjZy72b1hTlqN5VCNppfVhoqRRCAZxwFmqlk8e2/u 4DS/vrNqJPuksrjvcagGHRES3/0VnNTfaBW8PPnOjr1fJYsYbYnkMTciz4z+LUnKBkibac0TZU uJeabZd3dJDo8ru/j5alfYzR2SesHleXlsgGvWsLvlm+1FV6mn2vzXn8KO/Puhk6ixWmtRK+FC tZNNPQlH2BGFfjHqKBLiEd9qWNprnnnqmcabvBNm8+a7DyRsDvlwCb62l8XsEGhKan8GJ5m39B F0M= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH v3 2/6] isar-bootstrap: wipe out previously created rootfs with --one-file-system Date: Tue, 5 Nov 2019 13:53:01 +0100 Message-ID: <1572958385-246-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572958385-246-1-git-send-email-Cedric_Hombourger@mentor.com> References: <205b23d6-c598-eb03-f38d-0693bc4344a6@mentor.com> <1572958385-246-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: al1FtXnOK5bF 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