From 3f9f0a794f6b87931cf8a3d2954abc8eea6566b9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 28 May 2020 15:30:02 -0400 Subject: [PATCH] Ensure resolv.conf is set too --- buildiso.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buildiso.sh b/buildiso.sh index fc7ddb8..7b6d75e 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -122,6 +122,7 @@ prepare_rootfs() { sudo sed -i 's|/sbin/agetty|/sbin/agetty --autologin root|g' \ ${tempdir}/rootfs/etc/systemd/system/getty@tty1.service &>/dev/null || fail "Error setting autologin in getty override." sudo tee ${tempdir}/rootfs/etc/hostname <<<"pvc-node-installer" &>/dev/null || fail "Error setting hostname." + sudo tee ${tempdir}/rootfs/etc/resolv.conf <<<"nameserver 8.8.8.8" &>/dev/null || fail "Error setting resolv.conf" sudo tee -a ${tempdir}/rootfs/root/.bashrc <<<"/install.sh" &>/dev/null || fail "Error setting bashrc." sudo chroot ${tempdir}/rootfs/ /usr/bin/passwd -d root &>/dev/null || fail "Error disabling root password." sudo cp install.sh ${tempdir}/rootfs/ &>/dev/null || fail "Error copying install.sh to tempdir."