diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-10 10:38:04 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-10 12:51:55 +0000 |
commit | 24f04a924bbd61923718a877c9cb756606bf184d (patch) | |
tree | bc06906939e978e6e0049d188ace37a0409b3cfe /scripts | |
parent | 9f2b7b40e8fb32133a9d41f9a2a02bef86bb83ed (diff) | |
download | vyos-live-build-24f04a924bbd61923718a877c9cb756606bf184d.tar.gz vyos-live-build-24f04a924bbd61923718a877c9cb756606bf184d.zip |
chroot: clarify stages
the cache restore/save script is not a chroot modification script unlike
the rest of the scripts that it was bunched up with. It is an actual
component part of the chroot build stage.
let's bring clarity to this with improved documentation.
Gbp-Dch: Short
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/chroot | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/chroot b/scripts/build/chroot index ac5fafa1f..123005235 100755 --- a/scripts/build/chroot +++ b/scripts/build/chroot @@ -26,8 +26,10 @@ Init_config_data "${@}" # Setting up cleanup function Setup_clean_exit -# Configuring chroot +# Restoring cached live OS chroot from cache lb chroot_cache restore ${@} + +# Configuring chroot lb chroot_devpts install ${@} lb chroot_proc install ${@} lb chroot_selinuxfs install ${@} @@ -79,6 +81,8 @@ lb chroot_sysfs remove ${@} lb chroot_selinuxfs remove ${@} lb chroot_proc remove ${@} lb chroot_devpts remove ${@} + +# Saving live OS chroot to cache lb chroot_cache save ${@} Chroot chroot "ls -lR" > chroot.files |