[SCM] live-debconfig branch, debian-next, updated. debian/4.0_a2-1-7-g6a83e50
Daniel Baumann
daniel at debian.org
Thu Aug 16 13:17:28 UTC 2012
The following commit has been merged in the debian-next branch:
commit 6a83e50be371a084b3b40c9654f997ec1cc87bb9
Author: Daniel Baumann <daniel at debian.org>
Date: Thu Aug 16 15:17:27 2012 +0200
Making file operations in hostname script atomic.
diff --git a/scripts/debconfig/0010-hostname b/scripts/debconfig/0010-hostname
index 08767df..81b3f9e 100755
--- a/scripts/debconfig/0010-hostname
+++ b/scripts/debconfig/0010-hostname
@@ -55,4 +55,5 @@ Defaults
db_stop
# Set the hostname
-echo "${_HOSTNAME}" > /etc/hostname
+echo "${_HOSTNAME}" > /etc/hostname.tmp
+mv /etc/hostname.tmp /etc/hostname
--
live-debconfig
More information about the debian-live-changes
mailing list