[SCM] live-debconfig branch, debian-next, updated. debian/4.0_a2-1-9-g8dacd81
Daniel Baumann
daniel at debian.org
Thu Aug 16 13:20:40 UTC 2012
The following commit has been merged in the debian-next branch:
commit 8dacd81864081eaff370a9c0a28d723bfb0ba716
Author: Daniel Baumann <daniel at debian.org>
Date: Thu Aug 16 15:20:39 2012 +0200
Making file operations in sysvinit script atomic.
diff --git a/scripts/debconfig/0030-sysvinit b/scripts/debconfig/0030-sysvinit
index d03c084..78dedc0 100755
--- a/scripts/debconfig/0030-sysvinit
+++ b/scripts/debconfig/0030-sysvinit
@@ -119,13 +119,14 @@ case "${_LXC_ENABLE}" in
_CONSOLES="${_CONSOLES}\n#-- live-debconfig end"
# Remove old entries
- sed -e '/#-- live-debconfig begin/,/#-- live-debconfig end/d' /etc/inittab.tmp > /etc/inittab
+ sed -i -e '/#-- live-debconfig begin/,/#-- live-debconfig end/d' /etc/inittab.tmp
# Add new entries
_CONSOLE="$(grep '#[0-9].*:respawn:/sbin/getty' /etc/inittab | tail -1)"
- sed -e "s|\(${_CONSOLE}\)|\1${_CONSOLES}|" /etc/inittab > /etc/inittab.tmp
- mv -f /etc/inittab.tmp /etc/inittab
+ sed -i -e "s|\(${_CONSOLE}\)|\1${_CONSOLES}|" /etc/inittab.tmp
+
+ mv /etc/inittab.tmp /etc/inittab
# squeeze and newer only has /dev/tty and /dev/tty0 by default,
# therefore creating missing device nodes for tty1-4.
--
live-debconfig
More information about the debian-live-changes
mailing list