From d79c96232b40fb082233c97ac8d4f75b821ecefe Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Thu, 2 Apr 2020 20:23:57 +0100 Subject: stagefiles: guard unnecessary chroot removal just as most scripts are skipped if their stagefile exists (indicating that they have already been run to completion), including chroot preparation scripts in install mode, this implements the same guard for chroot prep remove mode, such that they exit early if their stagefile does not exist, indicating that the modification has already been removed. (also override-able by --force in the same way). this basically just uses a tweaked copy of Check_stagefile(). Gbp-Dch: Short --- scripts/build/chroot_hostname | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/build/chroot_hostname') diff --git a/scripts/build/chroot_hostname b/scripts/build/chroot_hostname index a209bcfba..4509591f0 100755 --- a/scripts/build/chroot_hostname +++ b/scripts/build/chroot_hostname @@ -57,6 +57,9 @@ EOF remove) Echo_message "Deconfiguring file /etc/hostname" + # Checking stage file + Ensure_stagefile_exists + # Acquire lock file Acquire_lockfile -- cgit v1.2.3