If I understand the code correctly, 30-hostname only changes the
hostname if it was the default like `(none)` or if it was set by dhcpcd
previously (that's why need_hostname checks for the old hostname).

In case /etc/hostname is included in the initrd (which is probably the
case for your initrd), the hostname will not be changed by 30-hostname.

Can you change

```
 need_hostname || return
```

to

```
 need_hostname || return 0
```

This should exit 30-hostname in this case.

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