diff options
author | Daniel Baumann <daniel@debian.org> | 2011-06-11 16:36:44 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-06-11 17:26:47 +0200 |
commit | 238ae93f4194dd6c43a146cb4e8d87825a4702f0 (patch) | |
tree | ee4565c11c895e295df3df22356ff62c689aef48 /scripts/build/lb_chroot_install-packages | |
parent | 65b7eb99f87c12741b1d6bb7640d8fdb7ad4a14f (diff) | |
download | vyos-live-build-238ae93f4194dd6c43a146cb4e8d87825a4702f0.tar.gz vyos-live-build-238ae93f4194dd6c43a146cb4e8d87825a4702f0.zip |
Allow to optionally run package installation in two passes. Eventually, this allows to have media containing a 'bigger' live system that what they end up installing (Closes: #627439).
Diffstat (limited to 'scripts/build/lb_chroot_install-packages')
-rwxr-xr-x | scripts/build/lb_chroot_install-packages | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/build/lb_chroot_install-packages b/scripts/build/lb_chroot_install-packages index a0e2684d2..cd3c17825 100755 --- a/scripts/build/lb_chroot_install-packages +++ b/scripts/build/lb_chroot_install-packages @@ -17,6 +17,10 @@ set -e DESCRIPTION="$(Echo 'install queued packages into chroot')" HELP="" USAGE="${PROGRAM} [--force]" +USAGE="${PROGRAM} {install|live} [--force]" + +_PASS="${1}" +shift Arguments "${@}" @@ -24,13 +28,13 @@ Arguments "${@}" Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Set_defaults -Echo_message "Begin installing packages..." +Echo_message "Begin installing packages (${_PASS} pass)..." # Requiring stage file Require_stagefile .stage/config .stage/bootstrap # Checking stage file -Check_stagefile .stage/chroot_install-packages +Check_stagefile .stage/chroot_install-packages.${PASS} # Checking lock file Check_lockfile .lock @@ -63,4 +67,4 @@ then fi # Creating stage file -Create_stagefile .stage/chroot_install-packages +Create_stagefile .stage/chroot_install-packages.${_PASS} |