]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: fix getty service startup 1344/head
authorFooDeas <foodeas@aeberlein.de>
Thu, 8 Dec 2016 13:03:10 +0000 (14:03 +0100)
committerFooDeas <foodeas@aeberlein.de>
Thu, 8 Dec 2016 13:03:10 +0000 (14:03 +0100)
Commit bf39edb39ecaea25801d716aebef798885277992 broke the handling of the getty service file with an '@' character in filename. So the startup condition was not fixed.

Because the parameter was quoted with the causal commit, the escaping has to be removed.

Signed-off-by: Andreas Eberlein foodeas@aeberlein.de
templates/lxc-debian.in

index a44aebbff6e9422a6d3b67dc4ac8f384cd5e2cad..892607c0e3ee86868164f51d9a19f49e08e1f3b1 100644 (file)
@@ -231,11 +231,11 @@ configure_debian_systemd()
     num_tty=$4
 
     # this only works if we have getty@.service to manipulate
-    if [ -f "${rootfs}/lib/systemd/system/getty\@.service" ]; then
+    if [ -f "${rootfs}/lib/systemd/system/getty@.service" ]; then
        sed -e 's/^ConditionPathExists=/# ConditionPathExists=/' \
            -e 's/After=dev-%i.device/After=/' \
-           < "${rootfs}/lib/systemd/system/getty\@.service" \
-           > "${rootfs}/etc/systemd/system/getty\@.service"
+           < "${rootfs}/lib/systemd/system/getty@.service" \
+           > "${rootfs}/etc/systemd/system/getty@.service"
     fi
 
     # just in case systemd is not installed