When creating a livecd using "livecd-creator -f volname" both the CD volume
and the root squashfs image get a label of "volname" which confuses udev and
the /etc/udev/rules.d/99-live-mount.rules script. It expects only the
correct device to have the expected label.
The result is that if I "rdbreak" and look at the ramdisk, /dev/live
correctly points to my CD-device, but if I let boot continue /dev/live
points to /dev/dm-1.
The attached patch (to /usr/lib/python2.6/imgcreate/fs.py) fixes the problem
for me, by appending "root" to the label of the created partition which
ensures that the two usages are always distinct, but there is probably a
better way.
-- Aaron
--- fs.py 2010-07-27 15:32:00.639060751 -0400
+++ fs.py.new 2010-07-27 15:31:47.472060713 -0400
@@ -395,7 +395,7 @@
def __init__(self, disk, mountdir, fstype, blocksize, fslabel, rmmountdir=True):
DiskMount.__init__(self, disk, mountdir, fstype, rmmountdir)
self.blocksize = blocksize
- self.fslabel = fslabel
+ self.fslabel = fslabel + "root"
def __format_filesystem(self):
logging.debug("Formating %s filesystem on %s" % (self.fstype, self.disk.device))
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd