diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-02 20:23:57 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-23 18:26:15 +0100 |
commit | d79c96232b40fb082233c97ac8d4f75b821ecefe (patch) | |
tree | 0d14ed516433176a321b72cf53fb25981720ac1d /scripts/build/chroot_apt | |
parent | 500f2050739e8cb902d710d1ae6b3f5de4d00dcd (diff) | |
download | vyos-live-build-d79c96232b40fb082233c97ac8d4f75b821ecefe.tar.gz vyos-live-build-d79c96232b40fb082233c97ac8d4f75b821ecefe.zip |
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
Diffstat (limited to 'scripts/build/chroot_apt')
-rwxr-xr-x | scripts/build/chroot_apt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/chroot_apt b/scripts/build/chroot_apt index 6d974f1b5..ad5c54816 100755 --- a/scripts/build/chroot_apt +++ b/scripts/build/chroot_apt @@ -147,6 +147,9 @@ case "${1}" in remove) Echo_message "Deconfiguring file /etc/apt/apt.conf" + # Checking stage file + Ensure_stagefile_exists + # Acquire lock file Acquire_lockfile |