summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_resolv
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-10 15:40:53 +0100
committerDaniel Baumann <daniel@debian.org>2007-11-10 15:40:53 +0100
commit51cfe60fc6b75ee214aff74a1e56543a98fd1f20 (patch)
treede2933b3f24f5168728a46565eb662c38195cf37 /helpers/lh_chroot_resolv
parent7cacae2d940e17a7627413bc934ea198de0ab486 (diff)
downloadvyos-live-build-51cfe60fc6b75ee214aff74a1e56543a98fd1f20.tar.gz
vyos-live-build-51cfe60fc6b75ee214aff74a1e56543a98fd1f20.zip
Using shell redirection to truncate rather than additional commands/forks/files, thanks to Justin Pryzby <jpryzby@quoininc.com>.
Diffstat (limited to 'helpers/lh_chroot_resolv')
-rwxr-xr-xhelpers/lh_chroot_resolv2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index eeeead226..bc53c6847 100755
--- a/helpers/lh_chroot_resolv
+++ b/helpers/lh_chroot_resolv
@@ -80,7 +80,7 @@ case "${1}" in
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
else
# Truncating resolv file
- cat < /dev/null > chroot/etc/resolv.conf
+ Truncate chroot/etc/resolv.conf
fi
# Removing stage file