* [PATCH 1/2]: dracut: 95resume: avoid possible symbolic link creation error on bootup
@ 2016-04-11 15:11 Guido Trentalancia
[not found] ` <1460387473.2670.20.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Guido Trentalancia @ 2016-04-11 15:11 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Avoid possible symbolic link creation error.
Signed-off-by: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
---
modules.d/95resume/parse-resume.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -pruN dracut-038-orig/modules.d/95resume/parse-resume.sh dracut-038-95resume-force-symlink/modules.d/95resume/parse-resume.sh
--- dracut-038-orig/modules.d/95resume/parse-resume.sh 2016-04-07 12:36:25.522641317 +0200
+++ dracut-038-95resume-force-symlink/modules.d/95resume/parse-resume.sh 2016-04-07 12:37:19.864406802 +0200
@@ -67,7 +67,7 @@ if ! getarg noresume; then
printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume echo %M:%m > /sys/power/resume"'
} >> /etc/udev/rules.d/99-resume.rules
- printf '[ -e "%s" ] && { ln -s "%s" /dev/resume; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
+ printf '[ -e "%s" ] && { ln -sf "%s" /dev/resume; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
"$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh
{
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2]: dracut: 95resume: avoid possible symbolic link creation error on bootup
[not found] ` <1460387473.2670.20.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
@ 2016-04-11 16:00 ` Guido Trentalancia
[not found] ` <1460390439.2670.24.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Guido Trentalancia @ 2016-04-11 16:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Avoid symbolic link creation error (should apply to latest dracut version).
Signed-off-by: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
---
modules.d/95resume/parse-resume.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- dracut-044/modules.d/95resume/parse-resume.sh 2015-11-25 14:22:28.000000000 +0100
+++ dracut-044-95resume-force-symlink/modules.d/95resume/parse-resume.sh 2016-04-11 17:53:20.664983390 +0200
@@ -67,7 +67,7 @@ if ! getarg noresume; then
printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume echo %M:%m > /sys/power/resume"'
} >> /etc/udev/rules.d/99-resume.rules
- printf '[ -e "%s" ] && { ln -s "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
+ printf '[ -e "%s" ] && { ln -sf "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
"$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh
{
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2]: dracut: 95resume: avoid possible symbolic link creation error on bootup
[not found] ` <1460390439.2670.24.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
@ 2016-04-15 8:39 ` Harald Hoyer
[not found] ` <5710A8B2.60704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Harald Hoyer @ 2016-04-15 8:39 UTC (permalink / raw)
To: Guido Trentalancia, initramfs-u79uwXL29TY76Z2rM5mHXA
On 11.04.2016 18:00, Guido Trentalancia wrote:
> Avoid symbolic link creation error (should apply to latest dracut version).
>
> Signed-off-by: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
> ---
> modules.d/95resume/parse-resume.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- dracut-044/modules.d/95resume/parse-resume.sh 2015-11-25 14:22:28.000000000 +0100
> +++ dracut-044-95resume-force-symlink/modules.d/95resume/parse-resume.sh 2016-04-11 17:53:20.664983390 +0200
> @@ -67,7 +67,7 @@ if ! getarg noresume; then
> printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume echo %M:%m > /sys/power/resume"'
> } >> /etc/udev/rules.d/99-resume.rules
>
> - printf '[ -e "%s" ] && { ln -s "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
> + printf '[ -e "%s" ] && { ln -sf "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
> "$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh
>
> {
> --
> 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
>
patching file modules.d/95resume/parse-resume.sh
patch: **** malformed patch at line 8: printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume
echo %M:%m > /sys/power/resume"'
anyway.. applied by hand and pushed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2]: dracut: 95resume: avoid possible symbolic link creation error on bootup
[not found] ` <5710A8B2.60704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-04-15 8:55 ` Guido Trentalancia
0 siblings, 0 replies; 4+ messages in thread
From: Guido Trentalancia @ 2016-04-15 8:55 UTC (permalink / raw)
To: Harald Hoyer, initramfs-u79uwXL29TY76Z2rM5mHXA
On Fri, 2016-04-15 at 10:39 +0200, Harald Hoyer wrote:
> On 11.04.2016 18:00, Guido Trentalancia wrote:
> > Avoid symbolic link creation error (should apply to latest dracut
> > version).
> >
> > Signed-off-by: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
> > ---
> > modules.d/95resume/parse-resume.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- dracut-044/modules.d/95resume/parse-resume.sh 2015-11-25
> > 14:22:28.000000000 +0100
> > +++ dracut-044-95resume-force-symlink/modules.d/95resume/parse-
> > resume.sh 2016-04-11 17:53:20.664983390 +0200
> > @@ -67,7 +67,7 @@ if ! getarg noresume; then
> > printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --
> > unique --name 00resume echo %M:%m > /sys/power/resume"'
> > } >> /etc/udev/rules.d/99-resume.rules
> >
> > - printf '[ -e "%s" ] && { ln -s "%s" /dev/resume 2>
> > /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
> > + printf '[ -e "%s" ] && { ln -sf "%s" /dev/resume 2>
> > /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
> > "$resume" "$resume" "$hookdir" >>
> > $hookdir/initqueue/settled/resume.sh
> >
> > {
>
> patching file modules.d/95resume/parse-resume.sh
> patch: **** malformed patch at line 8: printf -- '%s\n'
> ' RUN+="/sbin/initqueue --finished --unique --name 00resume
> echo %M:%m > /sys/power/resume"'
Very strange. I have checked again (version 2 of the patch, not version
1) and it applies cleanly to version 044 and git.
> anyway.. applied by hand and pushed.
Excellent. Thanks.
Regards,
Guido
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-15 8:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 15:11 [PATCH 1/2]: dracut: 95resume: avoid possible symbolic link creation error on bootup Guido Trentalancia
[not found] ` <1460387473.2670.20.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
2016-04-11 16:00 ` [PATCH v2 " Guido Trentalancia
[not found] ` <1460390439.2670.24.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
2016-04-15 8:39 ` Harald Hoyer
[not found] ` <5710A8B2.60704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-15 8:55 ` Guido Trentalancia
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.