Skip to content

Commit

Permalink
Add dracut args for /usr to bootloader (#787893)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bcl committed Mar 6, 2012
1 parent 28da143 commit df55a02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyanaconda/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ def set_boot_args(self, *args, **kwargs):

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")
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
Expand Down

0 comments on commit df55a02

Please sign in to comment.