We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7c0471 commit acfa793Copy full SHA for acfa793
modules.d/98dracut-systemd/rootfs-generator.sh
@@ -51,7 +51,6 @@ generator_mount_rootfs() {
51
[ -z "$1" ] && return 0
52
53
_name=$(dev_unit_name "$1")
54
- [ -d "$GENERATOR_DIR" ] || mkdir -p "$GENERATOR_DIR"
55
if ! [ -f "$GENERATOR_DIR"/sysroot.mount ]; then
56
{
57
echo "[Unit]"
@@ -101,9 +100,11 @@ case "${root#block:}" in
101
100
;;
102
esac
103
104
-GENERATOR_DIR="$1"
105
-
106
if [ "$rootok" = "1" ]; then
+ GENERATOR_DIR="$1"
+ [ -z "$GENERATOR_DIR" ] && exit 1
+ [ -d "$GENERATOR_DIR" ] || mkdir -p "$GENERATOR_DIR"
107
+
108
generator_wait_for_dev "${root#block:}"
109
generator_fsck_after_pre_mount "${root#block:}"
110
strstr "$(cat /proc/cmdline)" 'root=' || generator_mount_rootfs "${root#block:}" "$(getarg rootfstype=)" "$(getarg rootflags=)"
0 commit comments