]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Merge pull request #1718 from agaida/patch-1
authorStéphane Graber <stgraber@stgraber.org>
Fri, 6 Oct 2017 20:37:13 +0000 (16:37 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2017 20:37:13 +0000 (16:37 -0400)
Don't force getty@ configuration

templates/lxc-debian.in

index d42f4f2ca1743255b9f4e9f179dd2d38e1f521a7..7ba7ea0e0eae1bd98c7743fec1535454fa6b9c4b 100644 (file)
@@ -238,14 +238,6 @@ configure_debian_systemd()
     config=$3
     num_tty=$4
 
-    # this only works if we have getty@.service to manipulate
-    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"
-    fi
-
     # just in case systemd is not installed
     mkdir -p "${rootfs}/lib/systemd/system"
     mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants"