]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-generator.sh: increase timeout for checkisomd5
authorHarald Hoyer <harald@redhat.com>
Sat, 18 Jul 2015 11:02:25 +0000 (13:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Sat, 18 Jul 2015 11:02:25 +0000 (13:02 +0200)
if the checkisomd5 takes longer than 3 minutes, the device timeout for
/dev/mapper/live-rw cancels the boot process.

modules.d/90dmsquash-live/dmsquash-generator.sh

index e386d81df2e19ab0afa786a72492570f0c7e52b5..85a359284b188e4690c01474234014ba8622cfa7 100755 (executable)
@@ -64,3 +64,9 @@ ROOTFLAGS="$(getarg rootflags)"
     echo "What=/dev/mapper/live-rw"
     [ -n "$ROOTFLAGS" ] && echo "Options=${ROOTFLAGS}"
 } > "$GENERATOR_DIR"/sysroot.mount
+
+mkdir -p "$GENERATOR_DIR/dev-mapper-live\x2drw.device.d"
+{
+    echo "[Unit]"
+    echo "JobTimeoutSec=3000"
+} > "$GENERATOR_DIR/dev-mapper-live\x2drw.device.d/timeout.conf"