[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Generate casper uuid file in casper initrd



Hello,

 Please accept this simple patch which updates the chroot_hacks helper to invoke update-initramfs with CASPER_GENERATE_UUID=1 which is used as an indicator by casper that it should generate a uuid file inside the initrd. It will have no effect on how live-initramfs generates its initrd.

The uuid file is used by casper to help it find the medium it booted off of. A second patch will be required to extract the uuid file from the initrd and place it in binary/.disk but users can use a simple binary hook in the mean time while I work on cleaning that code up for submission.

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 'helpers/chroot_hacks'
--- helpers/chroot_hacks	2010-03-12 15:20:40 +0000
+++ helpers/chroot_hacks	2010-05-20 01:46:19 +0000
@@ -137,7 +137,7 @@
 esac
 
 # Update initramfs (always, because of udev rules in initrd)
-Chroot chroot "update-initramfs -k all -t -u"
+Chroot chroot "CASPER_GENERATE_UUID=1 update-initramfs -k all -t -u"
 
 # Ensure readable permissions on initramfs. loop-aes-utils sets umask to
 # protect GPG keys, which live-helper does not support.


Reply to: