Comment 3 for bug 1990618

Revision history for this message
Benjamin Drung (bdrung) wrote : Re: PXE Boot - errors in dhclient-script

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).