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:
parent
0ce1eba311
commit
b7f609e654
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue