Fix resolv.conf being wiped by dhcpcd on first reboot.

Wait for network-online, drop DHCP while still dhcp so dhcpcd exits
before writing static resolv.conf. Do not touch dhcpcd.conf.
This commit is contained in:
2026-08-26 21:10:36 +02:00
parent 83a4876f49
commit 798af69292
2 changed files with 10 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
[Unit]
Description=Postinstall Init
Wants=network-online.target
After=network-online.target networking.service
[Service]
ExecStart=/usr/bin/env bash /debian-postinstall-init.sh