Commit 0f6bc7af by Christian Brauner Committed by GitHub

Merge pull request #1344 from FooDeas/fix-getty

templates: fix getty service startup
parents 27cc1441 e95d7a59
...@@ -231,11 +231,11 @@ configure_debian_systemd() ...@@ -231,11 +231,11 @@ configure_debian_systemd()
num_tty=$4 num_tty=$4
# this only works if we have getty@.service to manipulate # 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=/' \ sed -e 's/^ConditionPathExists=/# ConditionPathExists=/' \
-e 's/After=dev-%i.device/After=/' \ -e 's/After=dev-%i.device/After=/' \
< "${rootfs}/lib/systemd/system/getty\@.service" \ < "${rootfs}/lib/systemd/system/getty@.service" \
> "${rootfs}/etc/systemd/system/getty\@.service" > "${rootfs}/etc/systemd/system/getty@.service"
fi fi
# just in case systemd is not installed # just in case systemd is not installed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment