Re: [PATCH] make dracut only activate the root LV (#553295)

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

 



On Wed, 2010-01-20 at 17:34 +0100, Hans de Goede wrote:
> 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.

Good one. Ack.

> ---
>  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. """


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux