diff options
author | Richard Nelson <unixabg@gmail.com> | 2014-11-11 17:19:55 -0600 |
---|---|---|
committer | Richard Nelson <unixabg@gmail.com> | 2014-11-11 17:29:50 -0600 |
commit | 570a17053c7f52313e02196cf6dce10c6bb0c5cb (patch) | |
tree | 6e3a18f7ad19c90402cffa89f64d85a9c8ef1a3b /scripts/build/config | |
parent | ef03f67f817a9485f61975480985588db9cd6ea0 (diff) | |
download | vyos-live-build-tmp-snapshot.tar.gz vyos-live-build-tmp-snapshot.zip |
Applying slightly modified patch from Rui Miguel P. Bernardo <rui.bernardo.pt@gmail.com>tmp-snapshot
to provide support of --snapshot option for utilizing snapshot.debian.org.
Diffstat (limited to 'scripts/build/config')
-rwxr-xr-x | scripts/build/config | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/build/config b/scripts/build/config index e3b1e5170..ac8af909b 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -52,6 +52,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--debian-installer-distribution daily|CODENAME]\n\ \t [--debian-installer-preseedfile FILE|URL]\n\ \t [--debian-installer-gui true|false]\n\ +\t [--snapshot yyyymmdd|yyyymmddThhmmssZ\n\ \t [--debug]\n\ \t [-d|--distribution CODENAME]\n\ \t [--parent-distribution CODENAME]\n\ @@ -147,7 +148,7 @@ Local_arguments () net-cow-server:,net-tarball:,firmware-binary:,firmware-chroot:,swap-file-path:,swap-file-size:, loadlin:,win32-loader:,source:,source-images:,breakpoints,conffile:,debug,force, help,ignore-system-defaults,quiet,usage,verbose,version,bootstrap-qemu-static:,bootstrap-qemu-arch:, - bootstrap-qemu-exclude:" + bootstrap-qemu-exclude:,snapshot:" # Remove spaces added by indentation LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')" ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")" @@ -300,6 +301,11 @@ Local_arguments () shift 2 ;; + --snapshot) + LB_SNAPSHOT="${2}" + shift 2 + ;; + --initramfs) LB_INITRAMFS="${2}" shift 2 @@ -949,6 +955,10 @@ LB_DEBCONF_FRONTEND="${LB_DEBCONF_FRONTEND}" # (Default: ${LB_DEBCONF_PRIORITY}) LB_DEBCONF_PRIORITY="${LB_DEBCONF_PRIORITY}" +# \$LB_SNAPSHOT: set snapshot.debian.org date to use +# (Default: empty or not set to not use archive snapshot, or a valid date in snapshot.debian.org URL format) +LB_SNAPSHOT="${LB_SNAPSHOT}" + # \$LB_INITRAMFS: set initramfs hook # (Default: ${LB_INITRAMFS}) LB_INITRAMFS="${LB_INITRAMFS}" |