You've already forked debian-unattended
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user