|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From 0ff31640421c628f6405f667f1404b1d74ea396b Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From: Harald Hoyer <harald@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Date: Wed, 7 May 2014 15:30:01 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Subject: [PATCH] resume/parse-resume.sh: correctly write timeout hook
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
modules.d/95resume/parse-resume.sh | 7 ++++---
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
diff --git a/modules.d/95resume/parse-resume.sh b/modules.d/95resume/parse-resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
index d7b2d7f96a..6ab59c359a 100755
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--- a/modules.d/95resume/parse-resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+++ b/modules.d/95resume/parse-resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
@@ -70,9 +70,10 @@ if ! getarg noresume; then
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
printf '[ -e "%s" ] && { ln -s "%s" /dev/resume; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
"$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
- printf -- "%s" 'warn "Cancelling resume operation. Device not found.";'
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
- printf -- ' cancel_wait_for_dev /dev/resume; rm -f -- "$job" "%s/initqueue/settled/resume.sh";\n' \
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
- "$hookdir" >> $hookdir/initqueue/timeout/resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ {
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ printf -- "%s" 'warn "Cancelling resume operation. Device not found.";'
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ printf -- ' cancel_wait_for_dev /dev/resume; rm -f -- "$job" "%s/initqueue/settled/resume.sh";\n' "$hookdir"
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ } >> $hookdir/initqueue/timeout/resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
mv /lib/dracut/resume.sh /lib/dracut/hooks/pre-mount/10-resume.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
else
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1.9.3
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|