From e5a60f56d40a6460786415420f50a8781fbee37a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -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."