From 2ebe4ec60d43315806d357208a6159277f4e3557 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Mon, 15 Jan 2018 14:56:49 +1300 Subject: [PATCH] run subiquity on the serial console --- .../subiquity-serial.conf | 2 ++ .../systemd/system/serial-subiquity@.service | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-getty@.service.d/subiquity-serial.conf create mode 100644 live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-subiquity@.service diff --git a/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-getty@.service.d/subiquity-serial.conf b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-getty@.service.d/subiquity-serial.conf new file mode 100644 index 00000000..9aef8ee3 --- /dev/null +++ b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-getty@.service.d/subiquity-serial.conf @@ -0,0 +1,2 @@ +[Service] +ExecStartPre=/bin/systemctl start serial-subiquity@%i.service diff --git a/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-subiquity@.service b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-subiquity@.service new file mode 100644 index 00000000..68753753 --- /dev/null +++ b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/serial-subiquity@.service @@ -0,0 +1,30 @@ +[Unit] +Description=Subiquity, the installer for Ubuntu Server %I +BindsTo=dev-%i.device +After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service +After=rc-local.service +ConditionPathExists=!/run/subiquity/complete +StartLimitInterval=0 + +[Service] +Environment=PYTHONPATH=/usr/share/subiquity +ExecStartPre=/bin/systemctl stop serial-getty@%I +ExecStart=/sbin/agetty -n --keep-baud -l /usr/share/subiquity/subiquity-tui --login-options "--serial" 115200,38400,9600 %I $TERM +ExecStopPost=/bin/systemctl start serial-getty@%I +Type=idle +Restart=always +RestartSec=0 +UtmpIdentifier=%I +TTYPath=/dev/%I +TTYReset=yes +TTYVHangup=yes +KillMode=process +IgnoreSIGPIPE=no +SendSIGHUP=yes + +#TTYVTDisallocate=yes +#KillMode=process +#Restart=always +#StandardInput=tty-force +#StandardOutput=tty +#StandardError=tty