]> git.donarmstrong.com Git - neurodebian.git/commitdiff
assure persistent hostname 'neurodebian' -- write it into /etc/hostname
authorYaroslav Halchenko <debian@onerussian.com>
Mon, 7 Feb 2011 15:17:19 +0000 (10:17 -0500)
committerYaroslav Halchenko <debian@onerussian.com>
Mon, 7 Feb 2011 15:17:19 +0000 (10:17 -0500)
vm/d-i/tools/initial_setup

index da4cb1bce61acfa9de070a145fb0fe287230e39b..8261b317869c3ee31c20df861ddc332889648e74 100755 (executable)
@@ -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