[systemd-devel] [PATCH 1/2] kernel-install: avoid using 'cp --preserve'
Jan Engelhardt
jengelh at inai.de
Sun Sep 29 03:43:10 PDT 2013
On Thursday 2013-09-26 01:18, Mantas Mikulėnas wrote:
>> -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`?
Then you ought to use `install -m 0600`, presuming that the user
running the install command is running with euid=root,egid=root.
More information about the systemd-devel
mailing list