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

Re: [PATCH] Add dracut args for /usr to bootloader (#787893)



On Mon, 2012-03-05 at 17:16 -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl redhat com>
> 
> When /usr is on a separate device like LVM or RAID dracut needs
> to know about this so add the needed rd.* parameters to the cmdline.
> This also works when upgrading.

Ack, but you don't need to pass the second arg to dict.get if you are
okay with a default of None.

> ---
>  pyanaconda/bootloader.py |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index db0626f..dbfd132 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -901,6 +901,11 @@ class BootLoader(object):
>  
>          dracut_devices.extend(self.storage.fsset.swapDevices)
>  
> +        # Does /usr have its own device? If so, we need to tell dracut
> +        usr_device = self.storage.mountpoints.get("/usr", None)
> +        if usr_device:
> +            dracut_devices.extend([usr_device])
> +
>          done = []
>          # When we see a device whose setup string starts with a key in this
>          # dict we pop that pair from the dict. When we're done looking at



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