[systemd-devel] [PATCH 1/2] kernel-install: avoid using 'cp --preserve'
Mantas Mikulėnas
grawity at gmail.com
Wed Sep 25 16:18:47 PDT 2013
On Thu, Sep 26, 2013 at 1:38 AM, Tom Gundersen <teg at jklm.no> wrote:
> Force 0600 and root:root instead, to avoid problems with fat filesystems.
> ---
> src/kernel-install/90-loaderentry.install | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install
> index 6b91d1c..06168c7 100644
> --- a/src/kernel-install/90-loaderentry.install
> +++ b/src/kernel-install/90-loaderentry.install
> @@ -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 0600 "$BOOT_DIR_ABS/linux" || {
How about `install -m 0600 -o root -g root`?
--
Mantas Mikulėnas <grawity at gmail.com>
More information about the systemd-devel
mailing list