Blame 0047-dmsquash-generator.sh-increase-timeout-for-checkisom.patch

Harald Hoyer 368a0c
From f4d64d55ea825ec0d05aaa76d58cddc37d44f719 Mon Sep 17 00:00:00 2001
Harald Hoyer 368a0c
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 368a0c
Date: Sat, 18 Jul 2015 13:02:25 +0200
Harald Hoyer 368a0c
Subject: [PATCH] dmsquash-generator.sh: increase timeout for checkisomd5
Harald Hoyer 368a0c
Harald Hoyer 368a0c
if the checkisomd5 takes longer than 3 minutes, the device timeout for
Harald Hoyer 368a0c
/dev/mapper/live-rw cancels the boot process.
Harald Hoyer 368a0c
---
Harald Hoyer 368a0c
 modules.d/90dmsquash-live/dmsquash-generator.sh | 6 ++++++
Harald Hoyer 368a0c
 1 file changed, 6 insertions(+)
Harald Hoyer 368a0c
Harald Hoyer 368a0c
diff --git a/modules.d/90dmsquash-live/dmsquash-generator.sh b/modules.d/90dmsquash-live/dmsquash-generator.sh
Harald Hoyer 368a0c
index e386d81..85a3592 100755
Harald Hoyer 368a0c
--- a/modules.d/90dmsquash-live/dmsquash-generator.sh
Harald Hoyer 368a0c
+++ b/modules.d/90dmsquash-live/dmsquash-generator.sh
Harald Hoyer 368a0c
@@ -64,3 +64,9 @@ ROOTFLAGS="$(getarg rootflags)"
Harald Hoyer 368a0c
     echo "What=/dev/mapper/live-rw"
Harald Hoyer 368a0c
     [ -n "$ROOTFLAGS" ] && echo "Options=${ROOTFLAGS}"
Harald Hoyer 368a0c
 } > "$GENERATOR_DIR"/sysroot.mount
Harald Hoyer 368a0c
+
Harald Hoyer 368a0c
+mkdir -p "$GENERATOR_DIR/dev-mapper-live\x2drw.device.d"
Harald Hoyer 368a0c
+{
Harald Hoyer 368a0c
+    echo "[Unit]"
Harald Hoyer 368a0c
+    echo "JobTimeoutSec=3000"
Harald Hoyer 368a0c
+} > "$GENERATOR_DIR/dev-mapper-live\x2drw.device.d/timeout.conf"