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:
bryanpedini committed 2026-08-26 21:10:36 +02:00
1 parent 83a4876f49
commit 798af69292
2 files changed
+10 -4

No files matched your search

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