Commit 12170cf8 by Serge Hallyn Committed by Daniel Lezcano

ubuntu template: handle /etc/resolv.conf being a symlink

parent 1d61e5b9
......@@ -468,9 +468,13 @@ post_process()
chroot $rootfs apt-get install --force-yes -y python-software-properties
chroot $rootfs add-apt-repository ppa:ubuntu-virt/ppa
fi
cp /etc/resolv.conf "${rootfs}/etc"
cresolvonf="${rootfs}/etc/resolv.conf"
mv $cresolvonf ${cresolvonf}.lxcbak
cat /etc/resolv.conf > ${cresolvonf}
chroot $rootfs apt-get update
chroot $rootfs apt-get install --force-yes -y lxcguest
rm -f ${cresolvonf}
mv ${cresolvonf}.lxcbak ${cresolvonf}
fi
# If the container isn't running a native architecture, setup multiarch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment