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

Re: [PATCH 2/4] Add dracutSetupString methods to all relevant device classes



On Tue, 2009-12-22 at 21:43 +0100, Hans de Goede wrote:
> We want to move to using dracut in such a way that the initrd only
> activates the minimum of storage needed to bring up the root fs. This
> requires us to tell it exactly what storage to activate.
> ---
>  storage/devices.py |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/devices.py b/storage/devices.py
> index 1065a68..b71b669 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -1555,6 +1555,9 @@ class LUKSDevice(DMCryptDevice):
>          """ This device's backing device. """
>          return self.parents[0]
>  
> +    def dracutSetupString(self):
> +        return "rd_LUKS_UUID=luks-%s" % self.format.uuid

rd_LUKS_UUID wants something formatted like "luks-$UUID" instead of the
actual UUID?

> "
> @@ -2786,6 +2796,10 @@ class DMRaidArrayDevice(DMDevice):
>          # Even if teared down we still want to show up in storage.disks
>          return True
>  
> +    def dracutSetupString(self):
> +        return "rd_DM_UUID=%s" % self.name

Again, rd_DM_UUID does not want a UUID? Brilliant naming if so.


Dave


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