]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install/90-loaderentry: fix chown
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 20 Sep 2022 23:05:37 +0000 (01:05 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Sep 2022 07:40:17 +0000 (16:40 +0900)
src/kernel-install/90-loaderentry.install

index b34bbd83cdf54431e4e781ca6a684192b34cccfa..743af33aa9345269f7e53a02333290cfd365a5db 100755 (executable)
@@ -111,7 +111,7 @@ install -m 0644 "$KERNEL_IMAGE" "$ENTRY_DIR_ABS/linux" || {
     echo "Error: could not copy '$KERNEL_IMAGE' to '$ENTRY_DIR_ABS/linux'." >&2
     exit 1
 }
-chown root.root "$ENTRY_DIR_ABS/linux" || :
+chown root:root "$ENTRY_DIR_ABS/linux" || :
 
 shift "$INITRD_OPTIONS_SHIFT"
 # All files listed as arguments, and staged files starting with "initrd" are installed as initrds.
@@ -128,7 +128,7 @@ for initrd in "$@" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do
         echo "Error: could not copy '$initrd' to '$ENTRY_DIR_ABS/$initrd_basename'." >&2
         exit 1
     }
-    chown root.root "$ENTRY_DIR_ABS/$initrd_basename" || :
+    chown root:root "$ENTRY_DIR_ABS/$initrd_basename" || :
 done
 
 mkdir -p "${LOADER_ENTRY%/*}" || {