Michael, the bug was submitted together with
https://bugs.launchpad.net/wubi/+bug/224697
You should find more info there.

PS patch patch (the above is not correct)


diff -u pm-utils-1.1.2.2/debian/changelog pm-utils-1.1.2.2/debian/changelog
--- pm-utils-1.1.2.2/debian/changelog
+++ pm-utils-1.1.2.2/debian/changelog
@@ -1,3 +1,9 @@
+pm-utils (1.1.2.2-2) hardy; urgency=low
+
+  * Disable hibernation if swap is on file
+
+ -- Agostino Russo <[EMAIL PROTECTED]>  Tue, 03 Jun 2008 01:04:09 +0100
+
 pm-utils (1.1.2.2-1) unstable; urgency=low

   * New upstream release.
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/uswsusp
+++ pm-utils-1.1.2.2/pm/module.d/uswsusp
@@ -49,8 +49,10 @@
 {
        [ -f /sys/power/disk ] && \
        grep -q disk /sys/power/state && \
-       [ -c /dev/snapshot ] &&
-       command_exists s2disk   
+       [ -c /dev/snapshot ] && \
+       [ -e /proc/swaps ] && \
+       ! grep -qs "/.*[[:space:]]file[[:space:]]" /proc/swaps && \
+       command_exists s2disk
 }

 do_hibernate()
only in patch2:
unchanged:
--- pm-utils-1.1.2.2.orig/pm/module.d/kernel
+++ pm-utils-1.1.2.2/pm/module.d/kernel
@@ -16,7 +16,11 @@

 check_hibernate()
 {
-       [ -f /sys/power/disk ] && grep -q disk /sys/power/state
+       [ -f /sys/power/disk ] && \
+       grep -q disk /sys/power/state && \
+       [ -e /proc/swaps ] && \
+       ! grep -qs "/.*[[:space:]]file[[:space:]]" /proc/swaps
+
 }

 do_hibernate()



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to