]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: k-i already creates $ENTRY_DIR_ABS, no need to do it again
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Jan 2022 11:10:37 +0000 (12:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 28 Jan 2022 15:17:45 +0000 (16:17 +0100)
src/kernel-install/90-loaderentry.install

index e588e72bf9c4a51c46feae42dbe1cf4640febf60..7b768457c1d1d074fbc1bfb025c9449eba136497 100644 (file)
@@ -78,12 +78,8 @@ else
 fi
 
 if ! [ -d "$ENTRY_DIR_ABS" ]; then
-    if [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ]; then
-        echo "+mkdir -v -p $ENTRY_DIR_ABS"
-        mkdir -v -p "$ENTRY_DIR_ABS"
-    else
-        mkdir -p "$ENTRY_DIR_ABS"
-    fi
+    echo "Error: entry directory '$ENTRY_DIR_ABS' does not exist" >&2
+    exit 1
 fi
 
 install -g root -o root -m 0644 "$KERNEL_IMAGE" "$ENTRY_DIR_ABS/linux" || {