You found an incompatibility of /sbin/dhclient-script with busybox. Relevant code snippet:
``` if [ -f $resolv_conf ]; then chown --reference=$resolv_conf $new_resolv_conf chmod --reference=$resolv_conf $new_resolv_conf fi ``` The chown command from busybox does not have a --reference parameter. Simplified test case: ``` touch resolve.conf busybox chown --reference=/etc/resolv.conf resolve.conf ``` This also fails for Ubuntu 23.10 (mantic). Can you document the steps to reproduce it? The amd-net autopkgtest test cases for initramfs-tools do not trigger the bug (probably because they to not trigger the if-condition). ** Summary changed: - PXE Boot - errors in dhclient-script + PXE Boot - errors in dhclient-script: busybox chmod: unrecognized option --reference ** Changed in: isc-dhcp (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu. https://bugs.launchpad.net/bugs/1990618 Title: PXE Boot - errors in dhclient-script: busybox chmod: unrecognized option --reference Status in isc-dhcp package in Ubuntu: Triaged Bug description: When booting 22.04.1 using ISO pulled vmlinuz/initrd/squashfs there are some errors in /sbin/dhclient-script. IDs redacted. Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eno1/f0:92:~:~:~:~ Sending on LPF/eno1/f0:92:~:~:~:~ Sending on Socket/fallback DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 3 (xid=0xa9d4e16d) DHCPOFFER of 10.0.~.~ from 10.0.~.1 DHCPREQUEST for 10.0.~.~ on eno1 to 255.255.255.255 port 67 (xid=0x6de1d4a9) DHCPACK of 10.0.~.~ from 10.0.~.1 (xid=0xa9d4e16d) /sbin/dhclient-script: line 99: chown: not found chmod: unrecognized option '--reference=/etc/resolv.conf' BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) multi-call binary. Usage: chmod [-R] MODE[,MODE]... FILE... Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst -R Recurse bound to 10.0.~.~ -- renewal in 2963 seconds. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1990618/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp