I started writing my comment before you posted your log output. That's
why I saw it only afterwards.

I tracked it down to: /usr/lib/dhcpcd/dhcpcd-run-hooks ->
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname -> need_hostname function:

```
        is_default_hostname "$hostname" && return 0
```

/usr/lib/dhcpcd/dhcpcd-hooks/10-mtu calls "set -e" which is still
present when sourcing /usr/lib/dhcpcd/dhcpcd-hooks/30-hostname.

Distilled down `test` shell code:

```
#!/bin/sh
set -e

need_hostname()
{
    false && return 0
    echo "remaining"
}

need_hostname
```

busybox behaves differently than dash in that case:

```
$ sh test; echo $?
remaining
0
$ busybox test; echo $?
1
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2064926

Title:
  dhcpcd stuck for 5 Minutes (300 Seconds) during Boot Process
  (LUKS/Clevis Autounlock)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dhcpcd/+bug/2064926/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to