From 066b1afc040641da602c54f20db4a028acebf148 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 22 Sep 2013 12:31:22 -0500 Subject: [PATCH] create-vmachine: Copy resolv.conf to the guest --- create-vmachine.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create-vmachine.sh b/create-vmachine.sh index 790855e..0bad0bd 100755 --- a/create-vmachine.sh +++ b/create-vmachine.sh @@ -56,6 +56,8 @@ mount -t tmpfs tmpfs "${MOUNTPOINT}"/run echo "Extracting stage tarball..." tar -xjpf "${STAGE_TBZ}" -C "${MOUNTPOINT}" +cp -L /etc/resolv.conf "${MOUNTPOINT}/etc/resolv.conf" + echo "Installing critical packages..." # Installing packages must be done in a chroot instead of using the $ROOT # Portage environment variable because several ebuilds use enewuser/enewgroup