]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
90-uki-copy.install: create $BOOT/EFI/Linux directory if needed
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Jan 2023 11:59:33 +0000 (12:59 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Mar 2023 07:14:46 +0000 (08:14 +0100)
Do not consider a missing 'Linux' subdirectory an error.
Just create it instead.

src/kernel-install/90-uki-copy.install

index d6e3deb723bc3791183663a8da157822583a57a0..6c71b211d7f4182aa8bfafeb46f5a1c095360b8c 100755 (executable)
@@ -49,8 +49,8 @@ case "$COMMAND" in
 esac
 
 if ! [ -d "$UKI_DIR" ]; then
-    echo "Error: entry directory '$UKI_DIR' does not exist" >&2
-    exit 1
+    [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "creating $UKI_DIR"
+    mkdir -p "$UKI_DIR"
 fi
 
 TRIES_FILE="${KERNEL_INSTALL_CONF_ROOT:-/etc/kernel}/tries"