summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/dnbd3-rootfs/hooks/s3-mount-root.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/s3-mount-root.sh b/modules.d/dnbd3-rootfs/hooks/s3-mount-root.sh
index 11ea46e3..2f5fc15f 100755
--- a/modules.d/dnbd3-rootfs/hooks/s3-mount-root.sh
+++ b/modules.d/dnbd3-rootfs/hooks/s3-mount-root.sh
@@ -1,7 +1,5 @@
#!/bin/bash
-type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh
-
source "/etc/openslx"
cnt=0
@@ -31,9 +29,8 @@ fi
(( ret != 0 )) && exit $ret
-if [ -n "$SLX_GENERATE_FSTAB_SCRIPT" ]; then
- eval "$SLX_GENERATE_FSTAB_SCRIPT"
-else
+if ! [ -e "$NEWROOT/etc/fstab.keep" ] && ! grep -qF 'NODELETE' "$NEWROOT/etc/fstab"; then
echo "" > "$NEWROOT/etc/fstab"
fi
-true
+
+exit 0