Comment 26 for bug 1867366

Revision history for this message
Dan Streetman (ddstreet) wrote :

focal, with both hostid and hostnqn modified:

root@lp1867366-f:~# dpkg -l | grep nvme-cli
ii nvme-cli 1.9-1 amd64 userspace tooling to control NVMe drives
root@lp1867366-f:~# grep . /etc/nvme/host*
/etc/nvme/hostid:I'm a modified hostid file!
/etc/nvme/hostnqn:I'm a modified hostnqn file!
root@lp1867366-f:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  nvme-cli
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 283 kB of archives.
After this operation, 3072 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 nvme-cli amd64 1.9-1ubuntu0.1 [283 kB]
Fetched 283 kB in 1s (363 kB/s)
(Reading database ... 47296 files and directories currently installed.)
Preparing to unpack .../nvme-cli_1.9-1ubuntu0.1_amd64.deb ...
Unpacking nvme-cli (1.9-1ubuntu0.1) over (1.9-1) ...
Setting up nvme-cli (1.9-1ubuntu0.1) ...
Processing triggers for man-db (2.9.1-1) ...
root@lp1867366-f:~# dpkg -l | grep nvme-cli
ii nvme-cli 1.9-1ubuntu0.1 amd64 userspace tooling to control NVMe drives
root@lp1867366-f:~# grep . /etc/nvme/host*
/etc/nvme/hostid:I'm a modified hostid file!
/etc/nvme/hostnqn:I'm a modified hostnqn file!

note: since both files are modified, they are not modified by the package update, and no warning is printed, since the hostid isn't the non-unique value anymore.