netronome firmware symlinks are overwritten by package upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-firmware (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The linux-firmware package includes symlinks to installed Netronome firmware files. These links may be updated by a user but are overwritten when the linux-firmware package is upgraded whereas the desired behaviour is to leave existing symlinks unmodified.
# apt install linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
linux-firmware
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 64.6 MB of archives.
After this operation, 278 MB of additional disk space will be used.
Get:1 http://
Fetched 64.6 MB in 1s (43.8 MB/s)
Selecting previously unselected package linux-firmware.
(Reading database ... 59988 files and directories currently installed.)
Preparing to unpack .../linux-
Unpacking linux-firmware (1.173.1) ...
Setting up linux-firmware (1.173.1) ...
update-initramfs: Generating /boot/initrd.
# cd /lib/firmware/
# ls -l
total 8
drwxr-xr-x 2 root root 4096 Nov 20 09:07 flower
drwxr-xr-x 2 root root 4096 Nov 20 09:07 nic
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0081-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0081-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0096-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0097-
lrwxrwxrwx 1 root root 36 May 18 2018 nic_AMDA0097-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0097-
lrwxrwxrwx 1 root root 36 May 18 2018 nic_AMDA0099-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0099-
lrwxrwxrwx 1 root root 31 May 18 2018 nic_AMDA0099-
# for i in $(find flower/ -type l); do ln -sf $i $(basename $i); done
# ls -l
total 8
drwxr-xr-x 2 root root 4096 Nov 20 09:07 flower
drwxr-xr-x 2 root root 4096 Nov 20 09:07 nic
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0081-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0081-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0096-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0097-
lrwxrwxrwx 1 root root 39 Nov 20 09:09 nic_AMDA0097-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0097-
lrwxrwxrwx 1 root root 36 May 18 2018 nic_AMDA0099-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0099-
lrwxrwxrwx 1 root root 34 Nov 20 09:09 nic_AMDA0099-
# apt update
...
# apt install linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
Need to get 64.6 MB of archives.
After this operation, 30.7 kB of additional disk space will be used.
Get:1 http://
Fetched 64.6 MB in 1s (55.1 MB/s)
(Reading database ... 61821 files and directories currently installed.)
Preparing to unpack .../linux-
Unpacking linux-firmware (1.173.2) over (1.173.1) ...
Setting up linux-firmware (1.173.2) ...
update-initramfs: Generating /boot/initrd.
root@ubuntu-
total 8
drwxr-xr-x 2 root root 4096 Nov 20 09:13 flower
drwxr-xr-x 2 root root 4096 Nov 20 09:13 nic
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0081-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0081-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0096-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0097-
lrwxrwxrwx 1 root root 36 Nov 6 14:30 nic_AMDA0097-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0097-
lrwxrwxrwx 1 root root 36 Nov 6 14:30 nic_AMDA0099-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0099-
lrwxrwxrwx 1 root root 31 Nov 6 14:30 nic_AMDA0099-
tags: | added: patch |
Hi,
Netronome would like to propose the following fix, which is to mark the symlinks as conffiles.
This produces a debian package which does not overwrite the symlinks when installed.