Public bug reported:
When we run:
```
update-initramfs -u -k all
```
we get an warning:
```
cp: warning: behavior of -n is non-portable and may change in future; use
--update=none instead
```
On Ubuntu 24.04.
The Full Output is:
```
update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.8.0-41-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgbikelanecrypt-swap)
I: Set the RESUME variable to override this.
cp: warning: behavior of -n is non-portable and may change in future; use
--update=none instead
update-initramfs: Generating /boot/initrd.img-6.8.0-40-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgbikelanecrypt-swap)
I: Set the RESUME variable to override this.
cp: warning: behavior of -n is non-portable and may change in future; use
--update=none instead
update-initramfs: Generating /boot/initrd.img-6.5.0-45-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgbikelanecrypt-swap)
I: Set the RESUME variable to override this.
cp: warning: behavior of -n is non-portable and may change in future; use
--update=none instead
update-initramfs: Generating /boot/initrd.img-6.2.0-39-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgbikelanecrypt-swap)
I: Set the RESUME variable to override this.
cp: warning: behavior of -n is non-portable and may change in future; use
--update=none instead
``
The line comes from `/usr/share/initramfs-tools/hooks/yubikey-luks`:
```
cp -pnL /usr/lib/yubikey-luks/initramfs-suspend "${DESTDIR}/suspend"
```
```
lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
```
** Affects: yubikey-luks (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078048
Title:
Update-initrd gives warning "cp: warning: behavior of -n is non-
portable and may change in future; use --update=none instead"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/yubikey-luks/+bug/2078048/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs