Currently we are making dracut activate the entire root containing VG, dracut-004 now has support for activating only specified LV's, this patch moves us over to that. --- booty/bootloaderInfo.py | 2 +- storage/devices.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py index a96f795..b92549b 100644 --- a/booty/bootloaderInfo.py +++ b/booty/bootloaderInfo.py @@ -103,7 +103,7 @@ class KernelArguments: args.append(self.id.network.dracutSetupString(d)) for i in [ [ "rd_LUKS_UUID", "rd_NO_LUKS" ], - [ "rd_LVM_VG", "rd_NO_LVM" ], + [ "rd_LVM_LV", "rd_NO_LVM" ], [ "rd_MD_UUID", "rd_NO_MD" ], [ "rd_DM_UUID", "rd_NO_DM" ] ]: if not types.has_key(i[0]): diff --git a/storage/devices.py b/storage/devices.py index d31ceae..7db8a25 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -2013,9 +2013,6 @@ class LVMVolumeGroupDevice(DMDevice): """ return len(self.pvs) == self.pvCount or not self.exists - def dracutSetupString(self): - return "rd_LVM_VG=%s" % self.name - class LVMLogicalVolumeDevice(DMDevice): """ An LVM Logical Volume """ @@ -2283,6 +2280,11 @@ class LVMLogicalVolumeDevice(DMDevice): udev_settle() lvm.lvresize(self.vg.name, self._name, self.size) + def dracutSetupString(self): + # Note no mapName usage here, this is a lvm cmdline name, which + # is different (ofcourse) + return "rd_LVM_LV=%s/%s" % (self.vg.name, self._name) + class MDRaidArrayDevice(StorageDevice): """ An mdraid (Linux RAID) device. """ -- 1.6.5.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list