[PATCH] Tell dracut it should activate the first swap device (#572771)

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

 



This is needed for resume from disk (thaw) to work properly. This
also fixes rhel-6 bug 588351.
---
 booty/bootloaderInfo.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index bed1ee7..2aaac7a 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -126,6 +126,9 @@ class KernelArguments:
             if bootDev is not rootDev:
                 neededDevs = [ rootDev, bootDev ]
 
+        if self.anaconda.storage.fsset.swapDevices:
+            neededDevs.append(self.anaconda.storage.fsset.swapDevices[0])
+
         for s in bootArgs + \
                  self.getDracutStorageArgs(neededDevs) + [
                  self.anaconda.instLanguage.dracutSetupString(),
-- 
1.7.0.1

_______________________________________________
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