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

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



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


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