From 17af75beeb7410e8f04a38a41fae69ef58754d9d Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Tue, 22 Jan 2013 15:16:04 +0100 Subject: remove noclear option for older agetty versions --- remote/tools/systemd/systemd.build | 6 ++++++ 1 file changed, 6 insertions(+) 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 } -- cgit v1.2.3-55-g7522