[SCM] live-build branch, debian, updated. debian/3.0_a25-1-57-g6167d10
Daniel Baumann
daniel at debian.org
Thu Aug 4 19:53:18 UTC 2011
The following commit has been merged in the debian branch:
commit 8316bd2d9813cbc7b2b8288b6618eec2c2004028
Author: Daniel Baumann <daniel at debian.org>
Date: Thu Jul 21 17:24:08 2011 +0200
Correcting uuid extraction from initrds in ubuntu mode to work from within binary so that it is cleaned up by lb_clean on failed builds.
diff --git a/scripts/build/lb_binary_disk b/scripts/build/lb_binary_disk
index b592b88..b1c4728 100755
--- a/scripts/build/lb_binary_disk
+++ b/scripts/build/lb_binary_disk
@@ -86,12 +86,12 @@ fi
case "${LB_INITRAMFS}" in
casper)
- for INITRD in binary/casper/initrd.img*
+ for INITRD in $(ls binary/casper/initrd.img* > /dev/null 2>&1)
do
- mkdir -p uuid
- cd uuid
+ mkdir -p binary/uuid
+ cd binary/uuid
- zcat "../${INITRD}" | cpio --quiet -id conf/uuid.conf
+ zcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf
if [ -e conf/uuid.conf ]
then
@@ -100,8 +100,8 @@ case "${LB_INITRAMFS}" in
Echo_warning "Failed to find casper uuid.conf in '${INITRD}'"
fi
- cd ..
- rm -rf uuid
+ cd ${OLDPWD}
+ rm -rf binary/uuid
done
;;
esac
--
live-build
More information about the debian-live-changes
mailing list