summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-10-26 13:47:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-10-26 13:47:50 +0200
commitf6f5145826f47fad5c5c79cd77a51f7987e8c5b8 (patch)
treed57c8088f710ca44c2d21e2dd87d5409b324e3c0
parenta30ec01ac438fb4524e987f207de767c29b1e74d (diff)
downloadmkinitcpio-hostname-f6f5145826f47fad5c5c79cd77a51f7987e8c5b8.tar.gz
mkinitcpio-hostname-f6f5145826f47fad5c5c79cd77a51f7987e8c5b8.tar.zst
do not modify /etc/hosts
-rw-r--r--hook/hostname1
1 files changed, 0 insertions, 1 deletions
diff --git a/hook/hostname b/hook/hostname
index a95d428..754c041 100644
--- a/hook/hostname
+++ b/hook/hostname
@@ -18,5 +18,4 @@ run_latehook() {
fi
echo -n "${hostprefix}-${hostname}" > "${newroot}/etc/hostname"
- sed -i "/^127.0.0.1/s/$/\t${hostprefix}-${hostname}/" "${newroot}/etc/hosts"
}