[SCM] live-build branch, debian-next, updated. debian/3.0_a1-1-2-g894f87f

Daniel Baumann daniel at debian.org
Sun Sep 26 12:28:52 UTC 2010


The following commit has been merged in the debian-next branch:
commit 894f87f4841a11190a22928864178b3d48a7e2b4
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Sep 26 14:28:41 2010 +0200

    Adding option to allow using the live-media pool in live system.

diff --git a/functions/defaults.sh b/functions/defaults.sh
index 5ebf2c0..9066b22 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -830,6 +830,8 @@ Set_defaults ()
 		LB_BINARY_INDICES="${LB_BINARY_INDICES:-true}"
 	fi
 
+	LB_BINARY_POOL="${LB_BINARY_POOL:-false}"
+
 	# Setting bootloader
 	if [ -z "${LB_BOOTLOADER}" ]
 	then
diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs
index 27af099..483fdfb 100755
--- a/scripts/build/lb_binary_rootfs
+++ b/scripts/build/lb_binary_rootfs
@@ -411,9 +411,10 @@ case "${LB_CHROOT_FILESYSTEM}" in
 				;;
 		esac
 		;;
-
 esac
 
+rm -f chroot/etc/apt/sources.list.d/live-media.list
+
 for STAGE in ${LB_CACHE_STAGES}
 do
 	if [ "${STAGE}" = "rootfs" ]
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks
index 47124be..8ec9901 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -215,6 +215,16 @@ then
 	rm -f chroot/etc/fstab
 fi
 
+if [ "${LB_BINARY_POOL}" = "true" ]
+then
+	echo "deb file:/live/image/debian ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list.d/live-media.list
+
+	if [ "${LB_SOURCE}" = "true" ]
+	then
+		echo "deb-src file:/live/image/debian ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/live-media.list
+	fi
+fi
+
 if [ "${LB_EXPOSED_ROOT}" = "true" ]
 then
 	# Make sure RW dirs exist so that the initramfs script has
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index 3d0583e..455d313 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -41,6 +41,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
 \t    [-b|--binary-images iso|net|tar|usb-hdd]\n\
 \t    [--binary-filesystem fat16|fat32]\n\
 \t    [--binary-indices true|false|none]\n\
+\t    [--binary-pool true|false]\n\
 \t    [--bootappend-install PARAMETER|\"PARAMETERS\"]\n\
 \t    [--bootappend-live PARAMETER|\"PARAMETERS\"]\n\
 \t    [--bootloader grub|syslinux|yaboot]\n\
@@ -147,7 +148,7 @@ Local_arguments ()
 		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:,packages-lists:,tasks:,security:,volatile:,backports:,sysvinit:,binary-filesystem:,binary-images:,
-		binary-indices:,bootappend-install:,bootappend-live:,bootloader:,checksums:,build-with-chroot:,
+		binary-indices:,binary-pool:,bootappend-install:,bootappend-live:,bootloader:,checksums:,build-with-chroot:,
 		debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:,
 		encryption:,grub-splash:,hostname:,isohybrid-options:,iso-application:,iso-preparer:,iso-publisher:,
 		iso-volume:,jffs2-eraseblock:,memtest:,net-root-filesystem:,net-root-mountoptions:,
@@ -542,6 +543,11 @@ Local_arguments ()
 				shift 2
 				;;
 
+			--binary-pool)
+				LB_BINARY_POOL="${2}"
+				shift 2
+				;;
+
 			--bootappend-live)
 				LB_BOOTAPPEND_LIVE="${2}"
 				shift 2
@@ -1148,6 +1154,10 @@ LB_BINARY_IMAGES="${LB_BINARY_IMAGES}"
 # (Default: ${LB_BINARY_INDICES})
 LB_BINARY_INDICES="${LB_BINARY_INDICES}"
 
+# \$LB_BINARY_POOL: enable live-media repository in live system
+# (Default: ${LB_BINARY_POOL})
+LB_BINARY_POOL="${LB_BINARY_POOL}"
+
 # \$LB_BOOTAPPEND_LIVE: set boot parameters
 # (Default: empty)
 LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE}"

-- 
live-build



More information about the debian-live-changes mailing list