summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_packagelists
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-06-11 16:36:44 +0200
committerDaniel Baumann <daniel@debian.org>2011-06-11 17:26:47 +0200
commit238ae93f4194dd6c43a146cb4e8d87825a4702f0 (patch)
treeee4565c11c895e295df3df22356ff62c689aef48 /scripts/build/lb_chroot_packagelists
parent65b7eb99f87c12741b1d6bb7640d8fdb7ad4a14f (diff)
downloadvyos-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_packagelists')
-rwxr-xr-xscripts/build/lb_chroot_packagelists12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/build/lb_chroot_packagelists b/scripts/build/lb_chroot_packagelists
index d3b178b50..4525465f6 100755
--- a/scripts/build/lb_chroot_packagelists
+++ b/scripts/build/lb_chroot_packagelists
@@ -16,7 +16,10 @@ set -e
# Setting static variables
DESCRIPTION="$(Echo 'queue install of package lists into chroot')"
HELP=""
-USAGE="${PROGRAM} [--force]"
+USAGE="${PROGRAM} {install|live} [--force]"
+
+_PASS="${1}"
+shift
Arguments "${@}"
@@ -24,13 +27,13 @@ Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
-Echo_message "Begin queueing installation of package lists..."
+Echo_message "Begin queueing installation of package lists (${_PASS} pass)..."
# Requiring stage file
Require_stagefile .stage/config .stage/bootstrap
# Checking stage file
-Check_stagefile .stage/chroot_packagelists
+Check_stagefile .stage/chroot_packagelists.${_PASS}
# Checking lock file
Check_lockfile .lock
@@ -40,7 +43,6 @@ Create_lockfile .lock
if [ -n "${LB_PACKAGE_LISTS}" ] && [ "${LB_PACKAGE_LISTS}" != "none" ]
then
-
for LIST in ${LB_PACKAGE_LISTS}
do
# Generating package list
@@ -48,5 +50,5 @@ then
done
# Creating stage file
- Create_stagefile .stage/chroot_packagelists
+ Create_stagefile .stage/chroot_packagelists.${_PASS}
fi