same for serial + fixes

This commit is contained in:
Michael Hudson-Doyle 2016-08-05 14:35:53 +12:00
parent a21aba4f11
commit f9ebd17afe
3 changed files with 7 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,6 +1,6 @@
subiquity (0.0.7~4~xenial) UNRELEASED; urgency=medium
* Use a drop-in file to run console-conf before getty.
* Use a drop-in files to run console-conf before getty.
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Fri, 05 Aug 2016 13:53:29 +1200

3
debian/console-conf-serial.conf vendored Normal file
View File

@ -0,0 +1,3 @@
[Unit]
After=serial-console-conf@%i.service
Wants=serial-console-conf@%i.service

View File

@ -7,11 +7,12 @@ ConditionPathExists=!/writable/firstboot-complete
[Service]
Environment=PYTHONPATH=/usr/share/subiquity
ExecStartPre=/sbin/systemctl stop serial-getty@%I
ExecStartPre=/bin/systemctl stop serial-getty@%I
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf %I $TERM
ExecStop=/sbin/systemctl start serial-getty@%I
ExecStop=/bin/systemctl start serial-getty@%I
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes