[SCM] live-build branch, debian, updated. debian/3.0_a33-1-13-gd59ecb4

Daniel Baumann daniel at debian.org
Fri Sep 30 12:52:38 UTC 2011


The following commit has been merged in the debian branch:
commit 432402e32ba6118886034150a41c9795e63bbb25
Author: Daniel Baumann <daniel at debian.org>
Date:   Wed Sep 28 09:53:58 2011 +0200

    Renaming and reworking previous chroot_local-preseed into chroot_preseed, now looking for config/preseed/*.preseed{,.chroot} files.

diff --git a/scripts/build/lb_chroot b/scripts/build/lb_chroot
index 072cc98..8f28c84 100755
--- a/scripts/build/lb_chroot
+++ b/scripts/build/lb_chroot
@@ -53,7 +53,7 @@ lb chroot_archives chroot install ${*}
 
 # Customizing chroot
 lb chroot_linux-image ${*}
-lb chroot_local-preseed ${*}
+lb chroot_preseed ${*}
 
 for _PASS in install live
 do
diff --git a/scripts/build/lb_chroot_local-preseed b/scripts/build/lb_chroot_preseed
similarity index 82%
rename from scripts/build/lb_chroot_local-preseed
rename to scripts/build/lb_chroot_preseed
index d37f5eb..baeced8 100755
--- a/scripts/build/lb_chroot_local-preseed
+++ b/scripts/build/lb_chroot_preseed
@@ -30,7 +30,7 @@ Echo_message "Begin executing local preseeds..."
 Require_stagefile .stage/config .stage/bootstrap
 
 # Checking stage file
-Check_stagefile .stage/chroot_local-preseed
+Check_stagefile .stage/chroot_preseed
 
 # Checking lock file
 Check_lockfile .lock
@@ -38,7 +38,8 @@ Check_lockfile .lock
 # Creating lock file
 Create_lockfile .lock
 
-if Find_files config/chroot_local-preseed/*
+if ls config/preseed/*.preseed > /dev/null 2>&1 || \
+   ls config/preseed/*.preseed.chroot > /dev/null 2>&1
 then
 	# Check dependency
 	Check_package chroot/usr/bin/debconf-set-selections debconf
@@ -46,7 +47,7 @@ then
 	# Install dependency
 	Install_package
 
-	for PRESEED in config/chroot_local-preseed/*
+	for PRESEED in config/chroot_preseed/*.preseed config/chroot_preseed/*.preseed.chroot
 	do
 		# Copying local preseed
 		cp "${PRESEED}" chroot/root/preseed
@@ -61,5 +62,5 @@ then
 	Remove_package
 
 	# Creating stage file
-	Create_stagefile .stage/chroot_local-preseed
+	Create_stagefile .stage/chroot_preseed
 fi
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index f015fe8..acf8549 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -198,7 +198,7 @@ Local_arguments ()
 				Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
 
 				# Dump contents of directories that contain text files
-				for DIRECTORY in config/package-lists config/task-lists config/chroot_apt config/chroot_local-patches config/chroot_local-preseed config/binary_rootfs
+				for DIRECTORY in config/package-lists config/task-lists config/chroot_apt config/chroot_local-patches config/preseed config/binary_rootfs
 				do
 					if Find_files "${DIRECTORY}"
 					then
@@ -1172,7 +1172,7 @@ mkdir -p config/chroot_local-patches
 mkdir -p config/packages
 mkdir -p config/packages.chroot
 mkdir -p config/package-lists
-mkdir -p config/chroot_local-preseed
+mkdir -p config/preseed
 mkdir -p config/task-lists
 
 cat > config/chroot << EOF
@@ -1422,7 +1422,7 @@ then
 	then
 		Echo_warning "Please install 'debconf-utils' in order to use this feature."
 	else
-		debconf-get-selections | grep -v deinstall | cut -f1 > config/chroot_local-preseed/local-system
+		debconf-get-selections | grep -v deinstall | cut -f1 > config/preseed/local.preseed.chroot
 	fi
 fi
 

-- 
live-build



More information about the debian-live-changes mailing list