diff options
Diffstat (limited to 'helpers/lh_chroot_resolv')
-rwxr-xr-x | helpers/lh_chroot_resolv | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv index 25051724a..04090546a 100755 --- a/helpers/lh_chroot_resolv +++ b/helpers/lh_chroot_resolv @@ -75,11 +75,11 @@ case "${1}" in if [ -f chroot/etc/resolv.conf.orig ] then - # Restore resolv file + # Restoring resolv file mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf else - # Remove resolv file - rm -f chroot/etc/resolv.conf + # Truncating resolv file + cat < /dev/null > chroot/etc/resolv.conf fi # Removing stage file |