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

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

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

_______________________________________________
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