]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: do not abort, if user pressed ESC on checkisomd5
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Nov 2014 12:44:54 +0000 (13:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 3 Jul 2015 12:08:35 +0000 (14:08 +0200)
If the user pressed ESC while checkisomd5 runs the media check, it will
exit with "2". Previously that would mean, that the media check was not
successful.

(cherry picked from commit 370035d561baa6852bcb02161ef736a78b62b336)

modules.d/90dmsquash-live/checkisomd5@.service
modules.d/90dmsquash-live/dmsquash-live-root.sh

index 20e40bd7c8fa908564fb31693931276785617dd7..c4ca10f3ce04e208c97dd395aeb1835c0458c2e5 100644 (file)
@@ -11,3 +11,4 @@ StandardInput=tty-force
 StandardOutput=inherit
 StandardError=inherit
 TimeoutSec=0
+SuccessExitStatus=2
index 64abc0be1087dd40e7d5f38bb4fd88d6a8563c22..8d5476cd7db2ec34bd4a1e476e58265eacf2313b 100755 (executable)
@@ -46,7 +46,7 @@ if [ -n "$check" ]; then
     else
         checkisomd5 --verbose $livedev
     fi
-    if [ $? -ne 0 ]; then
+    if [ $? -eq 1 ]; then
         die "CD check failed!"
         exit 1
     fi