diff options
-rwxr-xr-x | functions/defaults.sh | 11 | ||||
-rwxr-xr-x | scripts/build/chroot_archives | 20 | ||||
-rwxr-xr-x | scripts/build/config | 12 |
3 files changed, 42 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index be64a8774..c36b841f7 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -829,6 +829,17 @@ Set_defaults () ;; esac + # Setting lts updates option + case "${LB_PARENT_DISTRIBUTION}" in + squeeze) + LB_LTS="${LB_LTS:-true}" + ;; + + *) + LB_LTS="${LB_LTS:-false}" + ;; + esac + # Setting updates updates option case "${LB_PARENT_DISTRIBUTION}" in jessie|sid) diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index 6e464ec4d..248512125 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -142,6 +142,16 @@ EOF esac fi + if [ "${LB_LTS}" = "true" ] + then + echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-lts ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} + + if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ] + then + echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-lts ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} + fi + fi + if [ "${LB_UPDATES}" = "true" ] then echo "deb ${LB_PARENT_MIRROR_CHROOT_UPDATES} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} @@ -706,6 +716,16 @@ EOF esac fi + if [ "${LB_LTS}" = "true" ] + then + echo "deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-lts ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} + + if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ] + then + echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-lts ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} + fi + fi + if [ "${LB_UPDATES}" = "true" ] then echo "deb ${LB_PARENT_MIRROR_BINARY_UPDATES} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE} diff --git a/scripts/build/config b/scripts/build/config index d1d820a6b..345d6c51c 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -118,6 +118,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\ \t [--parent-archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\ \t [--security true|false]\n\ +\t [--lts true|false]\n\ \t [--source true|false]\n\ \t [-s|--source-images iso|netboot|tar|hdd]\n\ \t [--firmware-binary true|false]\n\ @@ -150,7 +151,7 @@ Local_arguments () mirror-binary-security:,mirror-binary-updates:,mirror-binary-backports:,mirror-debian-installer:, archives:,archive-areas:,parent-archive-areas:,chroot-filesystem:,exposed-root:, gzip-options:,hooks:,interactive:,keyring-packages:,linux-flavours:,linux-packages:, - security:,updates:,backports:,binary-filesystem:,binary-images:, + security:,lts:,updates:,backports:,binary-filesystem:,binary-images:, apt-indices:,bootappend-install:,bootappend-live:,bootappend-live-failsafe:,bootloader:,checksums:,compression:,config:,zsync:,build-with-chroot:, debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:, grub-splash:,isohybrid-options:,hdd-label:,hdd-size:,iso-application:,iso-preparer:,iso-publisher:, @@ -544,6 +545,11 @@ Local_arguments () shift 2 ;; + --lts) + LB_LTS="${2}" + shift 2 + ;; + --updates) LB_UPDATES="${2}" shift 2 @@ -1280,6 +1286,10 @@ LB_LINUX_PACKAGES="${LB_LINUX_PACKAGES}" # (Default: ${LB_SECURITY}) LB_SECURITY="${LB_SECURITY}" +# \$LB_LTS: enable lts updates +# (Default: ${LB_LTS}) +LB_LTS="${LB_LTS}" + # \$LB_UPDATES: enable updates updates # (Default: ${LB_UPDATES}) LB_UPDATES="${LB_UPDATES}" |