Correcting typo when reading from unprocessed instead of processed inittab in sysvini...
authorDaniel Baumann <daniel@debian.org>
Mon, 20 Aug 2012 11:05:34 +0000 (13:05 +0200)
committerDaniel Baumann <daniel@debian.org>
Mon, 20 Aug 2012 11:05:39 +0000 (13:05 +0200)
scripts/debconfig/0030-sysvinit

index 44a52de..764ff92 100755 (executable)
@@ -125,7 +125,7 @@ case "${_LXC_ENABLE}" in
                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)"
+               _CONSOLE="$(grep '#[0-9].*:respawn:/sbin/getty' /etc/inittab.tmp | tail -1)"
 
                sed -i -e "s|\(${_CONSOLE}\)|\1${_CONSOLES}|" /etc/inittab.tmp