summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-02-14 13:48:45 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:43 +0100
commitff807068b95f0b116338ee94a5da94823799e2aa (patch)
tree0507e7bbab14c5dc3af07af6ef69adc658ec6d4f /scripts
parent3047936fb5e4bc024b4d1902a762e24d57205e20 (diff)
downloadvyos-live-build-ff807068b95f0b116338ee94a5da94823799e2aa.tar.gz
vyos-live-build-ff807068b95f0b116338ee94a5da94823799e2aa.zip
Adding mirror option handling for derivatives.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_config115
1 files changed, 109 insertions, 6 deletions
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index 2eb8f0a04..edb040df2 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -103,6 +103,16 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
\t [--parent-mirror-binary-volatile URL]\n\
\t [--parent-mirror-binary-backports URL]\n\
\t [--parent-mirror-debian-installer URL]\n\
+\t [--mirror-bootstrap URL]\n\
+\t [--mirror-chroot URL]\n\
+\t [--mirror-chroot-security URL]\n\
+\t [--mirror-chroot-volatile URL]\n\
+\t [--mirror-chroot-backports URL]\n\
+\t [--mirror-binary URL]\n\
+\t [--mirror-binary-security URL]\n\
+\t [--mirror-binary-volatile URL]\n\
+\t [--mirror-binary-backports URL]\n\
+\t [--mirror-debian-installer URL]\n\
\t [--mode debian|emdebian|ubuntu]\n\
\t [--net-root-filesystem nfs|cfs]\n\
\t [--net-root-mountoptions OPTIONS]\n\
@@ -143,7 +153,10 @@ Local_arguments ()
initramfs:,initsystem:,fdisk:,losetup:,mode:,repositories:,root-command:,use-fakeroot:,tasksel:,includes:,
templates:,architectures:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,clean,
distribution:,parent-distribution:,parent-debian-installer-distribution:,parent-mirror-bootstrap:,parent-mirror-chroot:,parent-mirror-chroot-security:,parent-mirror-chroot-volatile:,parent-mirror-chroot-backports:,parent-mirror-binary:,
- parent-mirror-binary-security:,parent-mirror-binary-volatile:,parent-mirror-binary-backports:,parent-mirror-debian-installer:,archive-areas:,chroot-filesystem:,exposed-root:,virtual-root-size:,
+ parent-mirror-binary-security:,parent-mirror-binary-volatile:,parent-mirror-binary-backports:,parent-mirror-debian-installer:,
+ mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-chroot-volatile:,mirror-chroot-backports:,mirror-binary:,
+ mirror-binary-security:,mirror-binary-volatile:,mirror-binary-backports:,mirror-debian-installer:,
+ archive-areas:,chroot-filesystem:,exposed-root:,virtual-root-size:,
gzip-options:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,
packages:,package-lists:,tasks:,security:,volatile:,backports:,binary-filesystem:,binary-images:,
apt-indices:,bootappend-install:,bootappend-live:,bootloader:,checksums:,compression:,build-with-chroot:,
@@ -395,11 +408,6 @@ Local_arguments ()
shift 2
;;
- --parent-debian-installer-distribution)
- LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${2}"
- shift 2
- ;;
-
-m|--parent-mirror-bootstrap)
LB_PARENT_MIRROR_BOOTSTRAP="${2}"
shift 2
@@ -450,6 +458,56 @@ Local_arguments ()
shift 2
;;
+ --mirror-bootstrap)
+ LB_MIRROR_BOOTSTRAP="${2}"
+ shift 2
+ ;;
+
+ --mirror-chroot)
+ LB_MIRROR_CHROOT="${2}"
+ shift 2
+ ;;
+
+ --mirror-chroot-security)
+ LB_MIRROR_CHROOT_SECURITY="${2}"
+ shift 2
+ ;;
+
+ --mirror-chroot-volatile)
+ LB_MIRROR_CHROOT_VOLATILE="${2}"
+ shift 2
+ ;;
+
+ --mirror-chroot-backports)
+ LB_MIRROR_CHROOT_BACKPORTS="${2}"
+ shift 2
+ ;;
+
+ --mirror-binary)
+ LB_MIRROR_BINARY="${2}"
+ shift 2
+ ;;
+
+ --mirror-binary-security)
+ LB_MIRROR_BINARY_SECURITY="${2}"
+ shift 2
+ ;;
+
+ --mirror-binary-volatile)
+ LB_MIRROR_BINARY_VOLATILE="${2}"
+ shift 2
+ ;;
+
+ --mirror-binary-backports)
+ LB_MIRROR_BINARY_BACKPORTS="${2}"
+ shift 2
+ ;;
+
+ --mirror-debian-installer)
+ LB_MIRROR_DEBIAN_INSTALLER="${2}"
+ shift 2
+ ;;
+
--archive-areas)
LB_ARCHIVE_AREAS="${2}"
shift 2
@@ -587,6 +645,11 @@ Local_arguments ()
shift 2
;;
+ --parent-debian-installer-distribution)
+ LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${2}"
+ shift 2
+ ;;
+
--debian-installer-preseedfile)
LB_DEBIAN_INSTALLER_PRESEEDFILE="${2}"
shift 2
@@ -1033,6 +1096,46 @@ LB_PARENT_MIRROR_BINARY_BACKPORTS="${LB_PARENT_MIRROR_BINARY_BACKPORTS}"
# (Default: ${LB_PARENT_MIRROR_BOOTSTRAP})
LB_PARENT_MIRROR_DEBIAN_INSTALLER="${LB_PARENT_MIRROR_DEBIAN_INSTALLER}"
+# \$LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from
+# (Default: ${LB_MIRROR_BOOTSTRAP})
+LB_MIRROR_BOOTSTRAP="${LB_MIRROR_BOOTSTRAP}"
+
+# \$LB_MIRROR_CHROOT: set mirror to fetch packages from
+# (Default: ${LB_MIRROR_CHROOT})
+LB_MIRROR_CHROOT="${LB_MIRROR_CHROOT}"
+
+# \$LB_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from
+# (Default: ${LB_MIRROR_CHROOT_SECURITY})
+LB_MIRROR_CHROOT_SECURITY="${LB_MIRROR_CHROOT_SECURITY}"
+
+# \$LB_MIRROR_CHROOT_VOLATILE: set volatile mirror to fetch packages from
+# (Default: ${LB_MIRROR_CHROOT_VOLATILE})
+LB_MIRROR_CHROOT_VOLATILE="${LB_MIRROR_CHROOT_VOLATILE}"
+
+# \$LB_MIRROR_CHROOT_BACKPORTS: set backports mirror to fetch packages from
+# (Default: ${LB_MIRROR_CHROOT_BACKPORTS})
+LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS}"
+
+# \$LB_MIRROR_BINARY: set mirror which ends up in the image
+# (Default: ${LB_MIRROR_BINARY})
+LB_MIRROR_BINARY="${LB_MIRROR_BINARY}"
+
+# \$LB_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image
+# (Default: ${LB_MIRROR_BINARY_SECURITY})
+LB_MIRROR_BINARY_SECURITY="${LB_MIRROR_BINARY_SECURITY}"
+
+# \$LB_MIRROR_BINARY_VOLATILE: set volatile mirror which ends up in the image
+# (Default: ${LB_MIRROR_BINARY_VOLATILE})
+LB_MIRROR_BINARY_VOLATILE="${LB_MIRROR_BINARY_VOLATILE}"
+
+# \$LB_MIRROR_BINARY_BACKPORTS: set backports mirror which ends up in the image
+# (Default: ${LB_MIRROR_BINARY_BACKPORTS})
+LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS}"
+
+# \$LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror
+# (Default: ${LB_MIRROR_BOOTSTRAP})
+LB_MIRROR_DEBIAN_INSTALLER="${LB_MIRROR_DEBIAN_INSTALLER}"
+
# \$LB_ARCHIVE_AREAS: select archive areas to use
# (Default: ${LB_ARCHIVE_AREAS})
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS}"