Removing existing symlinks for systemd tty service files.
authorDaniel Baumann <mail@daniel-baumann.ch>
Fri, 19 Apr 2013 12:57:03 +0000 (14:57 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Fri, 19 Apr 2013 12:57:03 +0000 (14:57 +0200)
scripts/debconfig/0040-systemd

index e0f41dc..386d7c9 100755 (executable)
@@ -83,6 +83,11 @@ case "${_LXC_ENABLE}" in
 
                for _CONSOLE in $(seq 0 ${_LXC_CONSOLES})
                do
+                       if [ -L /etc/systemd/system/getty.target.wants/getty@tty${_CONSOLE}.service ]
+                       then
+                               rm -f /etc/systemd/system/getty.target.wants/getty@tty${_CONSOLE}.service
+                       fi
+
                        sed -e 's|^ *BindTo=|#BindTo=|' /lib/systemd/system/getty@.service > /etc/systemd/system/getty.target.wants/getty@tty${_CONSOLE}.service
                done