]> 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>
Tue, 25 Nov 2014 12:44:54 +0000 (13:44 +0100)
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.

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 246235be4b7c9ab7f96e030a96a4bd9279d58ec1..d921f0cd6739ab438cc1871a3cb38d706796fe92 100755 (executable)
@@ -42,7 +42,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