diff options
| -rw-r--r-- | remote/tools/systemd/systemd.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index c77033ac..a055cf90 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -40,4 +40,10 @@ post_copy() { # dont clear systemd log at startup sed -i.bak "s/TTYVTDisallocate=yes/TTYVTDisallocate=no/g" $INIT_DIR/usr/lib/systemd/system/getty@.service + + #old agetty version doesn't support --noclear option in getty service + if [ "x$(dpkg -s util-linux | grep Version: | cut -d' ' -f2)" == "x2.19.1-2ubuntu3" ]; + then + sed -i.bak "s/ExecStart=-\/sbin\/agetty --noclear %I 38400 linux/ExecStart=-\/sbin\/agetty %I 38400 linux/g" $INIT_DIR/usr/lib/systemd/system/getty@.service + fi } |
