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

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



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


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