kernel-install: avoid using 'cp --preserve'
Force 0644 and root:root instead, to avoid problems with fat filesystems.
This commit is contained in:
parent
f2ec0646ab
commit
8b179a830a
|
@ -59,7 +59,9 @@ if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
cp --preserve "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" || {
|
||||
cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" &&
|
||||
chown root:root "$BOOT_DIR_ABS/linux" &&
|
||||
chmod 0644 "$BOOT_DIR_ABS/linux" || {
|
||||
echo "Could not copy '$KERNEL_IMAGE to '$BOOT_DIR_ABS/linux'." >&2
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue