Resume from any suspend partion
RFC PATCH 1/1 Resume from any suspend partion
Any objections?
Harald Hoyer (1):
resume from any suspend partition
modules.d/95resume/resume-genrules.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1245313401-4185-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
PATCH 1/1 resume from any suspend partition
If not "noresume" is specified and no explicit "resume=" given, try to resume from any partition with type "suspend"
--- modules.d/95resume/resume-genrules.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
modules.d/95resume/resume-genrules.sh +3 -0
@@ -5,4 +5,7 @@ if [ -n "$resume" ]; then printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \ ${resume#/dev/} ) >> /etc/udev/rules.d/99-resume.rules +elif ! getarg noresume; then + echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\", RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"" \ + >> /etc/udev/rules.d/99-resume.rules fi
Signature · 6 lines
1.6.2.2 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1245313401-4185-2-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Re: [PATCH] resume from any suspend partition
Quoted 11 lines · Harald Hoyer
If not "noresume" is specified and no explicit "resume=" given, try to resume from any partition with type "suspend"
--- modules.d/95resume/resume-genrules.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)modules.d/95resume/resume-genrules.sh +0
-0
modules.d/95resume/resume-genrules.sh if [ -n "$resume" ]; then · line 11
Quoted 7 lines
modules.d/95resume/resume-genrules.sh +3
-0@@ -5,4 +5,7 @@ if [ -n "$resume" ]; then printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \ ${resume#/dev/} ) >> /etc/udev/rules.d/99-resume.rules +elif ! getarg noresume; then + echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\", RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"" \ + >> /etc/udev/rules.d/99-resume.rules fi
Unfortunately, obsolete libvolume_id uses "suspend", but all versions of libblkid uses "swsuspend".
You have to fix this rule after update to the latest udev that is without vol_id.
Karel
Signature · 5 lines
Karel Zak <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20090618115039.GA6431-sHeGUpI7y9L/[email protected]
Re: [PATCH] resume from any suspend partition
Quoted 23 lines · Karel Zak
Quoted 11 lines · Harald Hoyer
If not "noresume" is specified and no explicit "resume=" given, try to resume from any partition with type "suspend"
--- modules.d/95resume/resume-genrules.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)modules.d/95resume/resume-genrules.sh +0
-0modules.d/95resume/resume-genrules.sh if [ -n "$resume" ]; then · line 11
Quoted 7 lines
modules.d/95resume/resume-genrules.sh +3
-0@@ -5,4 +5,7 @@ if [ -n "$resume" ]; then printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m> /sys/power/resume'\"\n" \ ${resume#/dev/} )>> /etc/udev/rules.d/99-resume.rules +elif ! getarg noresume; then + echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\", RUN+=\"/bin/sh -c 'echo %M:%m> /sys/power/resume'\"" \ +>> /etc/udev/rules.d/99-resume.rules fiUnfortunately, obsolete
libvolume_iduses "suspend", but all versions of libblkid uses "swsuspend".
Quoted 5 lines
You have to fix this rule after update to the latest udev that is without
vol_id.Karel
ok, I will add a second rule, which will use "swsuspend"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html