Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Tell dracut it should activate the first swap device (#572771) (http://www.linux-archive.org/gentoo-user/365902-tell-dracut-should-activate-first-swap-device-572771-a.html)

Hans de Goede 05-04-2010 09:56 AM

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.swap Devices[0])
+
for s in bootArgs +
self.getDracutStorageArgs(neededDevs) + [
self.anaconda.instLanguage.dracutSetupString(),
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 09:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.