slauger/hcloud-okd4

Ignition fails with error creating file resolv.conf

Closed this issue · 1 comments

After starting make wait_bootstrap with COREOS_RELEASE=36.20220820.3.0 the initial boot fails and stops in emergency mode only visible on hetzner console:

CRITICAL: Ignition failed: failed to create files: failed to create files: error creating /sysroot/etc/resolv.conf: error creating file "/sysroot/etc/resolv.conf": A non regular file exists there already an overwrite is false

Generating "/run/initramfs/rdosreport.txt"

Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report.

Press Enter for maintenance
(or press Control-D to continue)

There exists a link in /sysroot/etc/resolv.conf -> ../run/systemd/resolve/stub-resolve.conf.

Workaround: Press Enter, delete this link and reboot:

rm /sysroot/etc/resolv.conf
reboot
exit
jngrb commented

As #246 was merged, this issue can be closed.