Blame 0059-95resume-avoid-possible-symbolic-link-creation-error.patch

Harald Hoyer b38677
From f3f019d9471bfc93ce8979c6cdcc0de81d0941e2 Mon Sep 17 00:00:00 2001
Harald Hoyer b38677
From: Guido Trentalancia <guido@trentalancia.net>
Harald Hoyer b38677
Date: Fri, 15 Apr 2016 10:38:04 +0200
Harald Hoyer b38677
Subject: [PATCH] 95resume: avoid possible symbolic link creation error on
Harald Hoyer b38677
 bootup
Harald Hoyer b38677
Harald Hoyer b38677
Avoid symbolic link creation error.
Harald Hoyer b38677
---
Harald Hoyer b38677
 modules.d/95resume/parse-resume.sh | 2 +-
Harald Hoyer b38677
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer b38677
Harald Hoyer b38677
diff --git a/modules.d/95resume/parse-resume.sh b/modules.d/95resume/parse-resume.sh
Harald Hoyer b38677
index 3b97e51..a3beb95 100755
Harald Hoyer b38677
--- a/modules.d/95resume/parse-resume.sh
Harald Hoyer b38677
+++ b/modules.d/95resume/parse-resume.sh
Harald Hoyer b38677
@@ -67,7 +67,7 @@ if ! getarg noresume; then
Harald Hoyer b38677
             printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume echo %M:%m  > /sys/power/resume"'
Harald Hoyer b38677
         } >> /etc/udev/rules.d/99-resume.rules
Harald Hoyer b38677
 
Harald Hoyer b38677
-        printf '[ -e "%s" ] && { ln -s "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
Harald Hoyer b38677
+        printf '[ -e "%s" ] && { ln -fs "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
Harald Hoyer b38677
             "$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh
Harald Hoyer b38677
 
Harald Hoyer b38677
         {