FS#59801 - [dhcpcd] losing duid after each upgrade
Attached to Project:
Arch Linux
Opened by Anonymous Submitter - Saturday, 25 August 2018, 11:34 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 31 August 2018, 15:24 GMT
Opened by Anonymous Submitter - Saturday, 25 August 2018, 11:34 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 31 August 2018, 15:24 GMT
|
Details
Every time I upgrade this package via pacman, it loses duid.
I think it happens, because of
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/dhcpcd#n18
as duid is a file /var/lib/dhcpcd/duid . I think, pacman
cleanes this directory every time.
So as duid changes, dhcp server on my router thinks, it is new device. |
This task depends upon
Can you, please, downgrade dhcpcd on two versions back via arch linux archive and then try to upgrade?
By the way, what does mean emptydirs option?
emptydirs
Leave empty directories in packages.
It instructs makepkg not to remove empty directories when the package is created it has no meaning to pacman.
Pacman does not remove files not provided by the package. A .install file could but the dhcpcd package does not use one.
If you downgrade dhcpcd does that remove /var/lib/dhcpcd/duid?
'stat /var/lib/dhcpcd/duid':
File: /var/lib/dhcpcd/duid
Size: 42 Blocks: 8 IO Block: 4096 regular file
Device: 802h/2050d Inode: 528900 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-08-30 17:46:16.857511875 +0300
Modify: 2018-06-09 20:12:44.074150474 +0300
Change: 2018-06-09 20:12:44.074150474 +0300
Birth: -
cat /var/log/pacman.log | grep dhcpcd
[2017-10-22 15:26] [ALPM] installed dhcpcd (6.11.5-1)
[2018-06-01 18:28] [ALPM] upgraded dhcpcd (6.11.5-1 -> 7.0.4-1)
So, the time of chaging was actually 2018-06-09 20:12, but not 2018-06-01 18:28. That's because after upgrading whole system at 06.01, I've just shutted down my PC. So I have full upgrade logs and journalctl logs of first starting up system after upgrade. If it can be useful, I'll upload it.
Now I'll try to upgrade whole system again and check the result. ...10 minutes later... that wasn't changed this time.
As you can see [2018-06-01 18:28] [ALPM] upgraded dhcpcd (6.11.5-1 -> 7.0.4-1), I've upgraded dhcpcd from 6.11.5 to 7.0.4. So here it is - https://github.com/rsmarples/dhcpcd#upgrading
As pacman hasn't moved duid file to new location, it wasn't moved and dhcpcd created new one. No one noticed, as it is not too important.