create-vmachine: Copy resolv.conf to the guest

master
Dustin C. Hatch 2013-09-22 12:31:22 -05:00
parent e595052d4a
commit 066b1afc04
1 changed files with 2 additions and 0 deletions

View File

@ -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