testing: Copy /etc/resolv.conf from host in chroot script
This makes installing packages etc. easier.
This commit is contained in:
@@ -57,6 +57,10 @@ log_action "Mounting $SHAREDDIR as /root/shared"
|
|||||||
execute "mount -o bind $SHAREDDIR $LOOPDIR/root/shared"
|
execute "mount -o bind $SHAREDDIR $LOOPDIR/root/shared"
|
||||||
do_on_exit umount $LOOPDIR/root/shared
|
do_on_exit umount $LOOPDIR/root/shared
|
||||||
|
|
||||||
|
log_action "Copy /etc/resolv.conf"
|
||||||
|
execute "cp /etc/resolv.conf $LOOPDIR/etc/resolv.conf"
|
||||||
|
do_on_exit rm $LOOPDIR/etc/resolv.conf
|
||||||
|
|
||||||
if [ -n "$affected" ]; then
|
if [ -n "$affected" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Rebuild the $affected images after making changes to this image!"
|
echo "Rebuild the $affected images after making changes to this image!"
|
||||||
|
|||||||
Reference in New Issue
Block a user