From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Karel Zak <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] resume from any suspend partition
Date: Thu, 18 Jun 2009 13:53:58 +0200 [thread overview]
Message-ID: <4A3A2AD6.6080203@redhat.com> (raw)
In-Reply-To: <20090618115039.GA6431-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
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
prev parent reply other threads:[~2009-06-18 11:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A3A2AD6.6080203@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox