summaryrefslogtreecommitdiff
path: root/initramfs-tools/scripts
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-19 07:14:00 -0400
committerAndrew Cady <d@jerkface.net>2019-06-19 08:13:41 -0400
commit48e16f97653453151494ac8389232e50c6b23101 (patch)
tree7c3bdc15051bd8ef4af5bda8d9c027c9f6a2ba85 /initramfs-tools/scripts
parentd4ba7be4ab25e3a5c0b430d75af447c53b561d19 (diff)
write /etc/resolv.conf on rootfs before booting
Diffstat (limited to 'initramfs-tools/scripts')
-rw-r--r--initramfs-tools/scripts/samizdat13
1 files changed, 8 insertions, 5 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat
index 0abe902..5acf266 100644
--- a/initramfs-tools/scripts/samizdat
+++ b/initramfs-tools/scripts/samizdat
@@ -12,20 +12,23 @@ mountroot()
12 12
13 if [ "$nbdroot" ]; then 13 if [ "$nbdroot" ]; then
14 configure_networking 14 configure_networking
15 export ROOTSERVER
16 15
17 (. common.sh 16 (debug_log samizdat.nbd
18 debug_log samizdat.nbd
19 . /scripts/local-top/nbd 17 . /scripts/local-top/nbd
20 bootdone nbd-script) & 18 bootdone nbd-script)
21 19
22 bootwait nbd-script
23 wait_for_gnupghome_tar 20 wait_for_gnupghome_tar
24 fi 21 fi
25 22
26 bootwait samizdat-gpg 23 bootwait samizdat-gpg
27 bootmenu 24 bootmenu
28 bootwait root-mounted 25 bootwait root-mounted
26
27 if [ "$IPV4DNS0" ]; then
28 printf '%s\n' "$IPV4DNS0" "$IPV4DNS1" |
29 grep -v 0.0.0.0 |
30 sed 's/^/nameserver /' > /root/etc/resolv.conf
31 fi
29 chvt 1 32 chvt 1
30} 33}
31 34