* [RFC PATCH] Resume from any suspend partion
@ 2009-06-18 8:23 Harald Hoyer
[not found] ` <1245313401-4185-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Harald Hoyer @ 2009-06-18 8:23 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Harald Hoyer
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] resume from any suspend partition
[not found] ` <1245313401-4185-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 8:23 ` Harald Hoyer
[not found] ` <1245313401-4185-2-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Harald Hoyer @ 2009-06-18 8:23 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: 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(-)
diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
index 13b91a5..5ff4efe 100755
--- a/modules.d/95resume/resume-genrules.sh
+++ b/modules.d/95resume/resume-genrules.sh
@@ -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
--
1.6.2.2
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] resume from any suspend partition
[not found] ` <1245313401-4185-2-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 11:50 ` Karel Zak
[not found] ` <20090618115039.GA6431-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Karel Zak @ 2009-06-18 11:50 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On Thu, Jun 18, 2009 at 10:23:21AM +0200, Harald Hoyer wrote:
> 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(-)
>
> diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
> index 13b91a5..5ff4efe 100755
> --- a/modules.d/95resume/resume-genrules.sh
> +++ b/modules.d/95resume/resume-genrules.sh
> @@ -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
--
Karel Zak <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] resume from any suspend partition
[not found] ` <20090618115039.GA6431-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
@ 2009-06-18 11:53 ` Harald Hoyer
0 siblings, 0 replies; 4+ messages in thread
From: Harald Hoyer @ 2009-06-18 11:53 UTC (permalink / raw)
To: Karel Zak; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On 06/18/2009 01:50 PM, Karel Zak wrote:
> On Thu, Jun 18, 2009 at 10:23:21AM +0200, Harald Hoyer wrote:
>> 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(-)
>>
>> diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
>> index 13b91a5..5ff4efe 100755
>> --- a/modules.d/95resume/resume-genrules.sh
>> +++ b/modules.d/95resume/resume-genrules.sh
>> @@ -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
>
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-18 11:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 8:23 [RFC PATCH] Resume from any suspend partion Harald Hoyer
[not found] ` <1245313401-4185-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 8:23 ` [PATCH] resume from any suspend partition Harald Hoyer
[not found] ` <1245313401-4185-2-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 11:50 ` Karel Zak
[not found] ` <20090618115039.GA6431-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2009-06-18 11:53 ` Harald Hoyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.