[PATCH] Extract casper uuid file from casper initrds
Hello,
Better late than never -- Following up on the patch to generate the casper uuid file in casper initrds, here is the patch to extract the uuid file and place it in binary/.disk/.
Let me know if you have any questions or concerns about this patch.
Cheers,
--
Cody A.W. Somerville
Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1 781 850 2087
Cell: +1 613 401 5141
Fax: +1 613 687 7368
Email: cody.somerville@canonical.com
=== modified file 'scripts/build/binary_disk'
--- scripts/build/binary_disk 2010-07-24 15:10:10 +0000
+++ scripts/build/binary_disk 2010-08-12 18:48:44 +0000
@@ -82,6 +82,24 @@
> binary/.disk/archive_trace
fi
+if [ "${LH_INITRAMFS}" = "casper" ]
+then
+ 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 -r uuid
+ done
+fi
+
case "${LH_DEBIAN_INSTALLER}" in
cdrom)
echo "main" > binary/.disk/base_components
Reply to: