summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-08-14 11:48:30 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:17 +0100
commitb7f609e654d1338423980eb8141f43b2b4853674 (patch)
tree774691f7e64f4dbbab083978a61db3c179e30737 /scripts/build
parent0ce1eba311d9d61db1047e4a9d21bf97ba4ff2f4 (diff)
downloadlive-build-b7f609e654d1338423980eb8141f43b2b4853674.zip
live-build-b7f609e654d1338423980eb8141f43b2b4853674.tar.gz
Adding slightly modified patch from Cody A.W. Somerville <cody.somerville@canonical.com> to extract casper uuid file from casper initrds.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_disk22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk
index e262c20..612e5fc 100755
--- a/scripts/build/binary_disk
+++ b/scripts/build/binary_disk
@@ -82,6 +82,28 @@ then
> binary/.disk/archive_trace
fi
+case "${LH_INITRAMFS}" in
+ casper)
+ for INITRD in binary/casper/initrd.img*
+ do
+ mkdir uuid
+ cd uuid
+
+ zcat "../${INITRD}" | cpio --quiet -id conf/uuid.conf
+
+ if [ -e conf/uuid.conf ]
+ then
+ mv conf/uuid.conf "../binary/.disk/casper-uuid${INITRD#binary/casper/initrd.img}"
+ else
+ Echo_warning "Failed to find casper uuid.conf in '${INITRD}'"
+ fi
+
+ cd ..
+ rm -rf uuid
+ done
+ ;;
+esac
+
case "${LH_DEBIAN_INSTALLER}" in
cdrom)
echo "main" > binary/.disk/base_components