Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
dracut
> 0059-95resume-avoid-possible-symbolic-link-creation-error.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0059-95resume-avoid-possible-symbolic-link-creation-error.patch of Package dracut
From 63b697a9cc1a0db49353ee6476517429f32f736c Mon Sep 17 00:00:00 2001 From: Guido Trentalancia <guido@trentalancia.net> Date: Fri, 15 Apr 2016 10:38:04 +0200 Subject: [PATCH] 95resume: avoid possible symbolic link creation error on bootup Avoid symbolic link creation error. --- modules.d/95resume/parse-resume.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95resume/parse-resume.sh b/modules.d/95resume/parse-resume.sh index 3b97e51c..a3beb955 100755 --- a/modules.d/95resume/parse-resume.sh +++ b/modules.d/95resume/parse-resume.sh @@ -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 -fs "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \ "$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh {