summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-12 14:29:29 +0200
committerSimon Rettberg2024-06-12 14:29:29 +0200
commitee2bfe4adbfa3079bf4bc2508fd7dd00ceffe419 (patch)
treec3568b102fdce4cac7a27636758e4c29fc65a1d8
parent[slx-extra-script] New module to run script from URL (diff)
downloadsystemd-init-ee2bfe4adbfa3079bf4bc2508fd7dd00ceffe419.tar.gz
systemd-init-ee2bfe4adbfa3079bf4bc2508fd7dd00ceffe419.tar.xz
systemd-init-ee2bfe4adbfa3079bf4bc2508fd7dd00ceffe419.zip
[dnbd3-rootfs] Kill SLX_GENERATE_FSTAB_SCRIPT
-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