Adding slightly modified patch from Cody A.W. Somerville <cody.somerville@canonical.com> to extract casper uuid file from casper initrds.

This commit is contained in:
Daniel Baumann 2010-08-14 11:48:30 +02:00
parent 0ce1eba311
commit b7f609e654
1 changed files with 22 additions and 0 deletions

View File

@ -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