[Bug 1878955] Re: resolved dhclient-enter-hook complains about an empty file
Launchpad Bug Tracker
1878955 at bugs.launchpad.net
Mon Jan 18 10:40:45 UTC 2021
This bug was fixed in the package systemd - 237-3ubuntu10.44
---------------
systemd (237-3ubuntu10.44) bionic; urgency=medium
* d/extra/dhclient-enter-resolved-hook:
suppress output of cmp command in dhclient hook (LP: #1878955)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=c5a2db69aafc7a3ab4e71bae44fd7ad9dd955c97
* d/p/lp1905044/0001-capability-add-a-way-to-get-a-uint64_t-with-all-caps.patch,
d/p/lp1905044/0002-test-use-cap_last_cap-for-max-supported-cap-number-n.patch:
test: use cap_last_cap() instead of capability_list_length()
(LP: #1905044)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=34ebc6e28e63881d40c91c5839597acc2fdab546
* d/p/lp1905245/0001-basic-cap-list-parse-print-numerical-capabilities.patch:
print number of unknown capabilities instead of failing
(LP: #1905245)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=5ab225b7f731c6cf6b4655cb27c3a842150c4c1a
* d/p/lp1907306/0001-sd-dhcp-client-don-t-log-timeouts-if-already-expired.patch,
d/p/lp1907306/0002-sd-dhcp-client-track-dhcp4-t1-t2-expire-times.patch,
d/p/lp1907306/0003-sd-dhcp-client-add-RFC2131-retransmission-details.patch,
d/p/lp1907306/0004-sd-dhcp-client-simplify-dhcp4-t1-t2-parsing.patch,
d/p/lp1907306/0005-sd-dhcp-client-correct-dhcpv4-renew-rebind-retransmi.patch,
d/p/lp1907306/0008-sd-dhcp-client-fix-renew-rebind-timeout-calculation-.patch:
Send correct number of dhcpv4 renew and rebind requests
(LP: #1907306)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=036230cac8232bf4f970e565c355ee1a82fc2ee6
* d/t/root-unittests:
Remove any corrupt journal files (LP: #1881947)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=b284b93e40b6cb834bb40dd3db94850853ab5bb8
-- Dan Streetman <ddstreet at canonical.com> Wed, 06 Jan 2021 16:04:25
-0500
** Changed in: systemd (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1878955
Title:
resolved dhclient-enter-hook complains about an empty file
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Bionic:
Fix Released
Status in systemd source package in Focal:
Fix Released
Bug description:
[impact]
When starting/using `dhclient`, it will often return an error such as:
cmp: EOF on /tmp/tmp.yCyV6zBzhB which is empty
[test case]
run dhclient for the first time (for the current boot) on a
bionic/focal system, or remove the file(s) in
/run/systemd/resolved.conf.d/ starting with 'isc-dhcp-*', and then run
dhclient.
[regression potential]
any regression would likely cause the DNS configuration that dhclient
gets to not be properly reported to systemd-resolved, resulting in
problematic/broken systemd DNS resolution.
[scope]
this is needed in b/f
this hook was removed from systemd starting in g, and the hook was not
yet added in x, so this change is needed only in b and f.
[original description]
When starting/using `dhclient`, it will often return an error such as:
cmp: EOF on /tmp/tmp.yCyV6zBzhB which is empty
This is due to the use of `cmp` in "/etc/dhcp/dhclient-enter-
hooks.d/resolved"
Because the $oldstate file can be empty, or different, it should use
`cmp --quiet`
This happens when "/run/systemd/resolved.conf.d/isc-
dhcp-v*-$interface.conf" files do not exist, or when the content
changes.
This is very loosely related to
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1805183
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1878955/+subscriptions
More information about the foundations-bugs
mailing list