summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2013-10-16 21:40:17 +0000
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2013-10-16 21:40:17 +0000
commitc921907d96730c2a0b6f0bc2c7484fdd966ea8a2 (patch)
tree27985c5bf8437d54067ad19108e09024bf475f2b /sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch
parentVersion bump. Add SLOT operator dependencies. Enable libaria2. (diff)
downloadgentoo-2-c921907d96730c2a0b6f0bc2c7484fdd966ea8a2.tar.gz
gentoo-2-c921907d96730c2a0b6f0bc2c7484fdd966ea8a2.tar.bz2
gentoo-2-c921907d96730c2a0b6f0bc2c7484fdd966ea8a2.zip
Fixed bug #487322 (resume support in hostonly mode) and bug #486516
(redundant inclusion of libs from lib32 directory). Thanks to Alexander Tsoy <alexander@tsoy.me> for patch for bug #486516. (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F0134531E1DBFAB5)
Diffstat (limited to 'sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch')
-rw-r--r--sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch b/sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch
new file mode 100644
index 000000000000..e97780c25981
--- /dev/null
+++ b/sys-kernel/dracut/files/034-0006-resume-fix-swap-detection-in-hostonly.patch
@@ -0,0 +1,31 @@
+From 0c89bcc27516803d68444488ede3d513ba982039 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Wed, 9 Oct 2013 06:39:46 +0400
+Subject: [PATCH 6/6] resume: fix swap detection in hostonly
+
+Check for other possible fs types. This fixes swap detection when using
+TuxOnIce kernel.
+
+Note that parse-resume.sh generate udev rules with support for
+ID_FS_TYPE=suspend, but we do not include it here, because it is
+libvolume_id thing and host_fs_types is populated using blkid.
+---
+ modules.d/95resume/module-setup.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
+index 518ebf0..a1ddb46 100755
+--- a/modules.d/95resume/module-setup.sh
++++ b/modules.d/95resume/module-setup.sh
+@@ -6,7 +6,7 @@ check() {
+ # No point trying to support resume, if no swap partition exist
+ [[ $hostonly ]] || [[ $mount_needs ]] && {
+ for fs in "${host_fs_types[@]}"; do
+- [[ $fs = swap ]] && return 0
++ [[ $fs =~ ^(swap|swsuspend|swsupend)$ ]] && return 0
+ done
+ return 255
+ }
+--
+1.8.3.2
+