From ee2bfe4adbfa3079bf4bc2508fd7dd00ceffe419 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 12 Jun 2024 14:29:29 +0200 Subject: [dnbd3-rootfs] Kill SLX_GENERATE_FSTAB_SCRIPT --- modules.d/dnbd3-rootfs/hooks/s3-mount-root.sh | 9 +++------ 1 file 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 -- cgit v1.2.3-55-g7522