From 28c806f12f611485d999f026281d4375ab5a0ad2 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 7 Feb 2011 10:17:19 -0500 Subject: [PATCH] assure persistent hostname 'neurodebian' -- write it into /etc/hostname --- vm/d-i/tools/initial_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm/d-i/tools/initial_setup b/vm/d-i/tools/initial_setup index da4cb1b..8261b31 100755 --- a/vm/d-i/tools/initial_setup +++ b/vm/d-i/tools/initial_setup @@ -16,7 +16,8 @@ set -u # domain: '' # Needs to be assured since it got reset to debian -hostname neurodebian +hostname neurodebian # this is not a permanent change +echo "neurodebian" >| /etc/hostname # make it permanent sed -i -e 's/^127\.0\.1\.1.*/127.0.1.1\tneurodebian/g' /etc/hosts # all file in one partition -- 2.39.2