Misc bugfix for issues starting on serial console.

* debian/console-conf.*.serial: Start the console-conf wrappers from
  their path in /usr/share/subiquity; no need to have them in /usr/bin.
* bin/console-conf-serial-wrapper: add --serial to the command-line.
* debian/console-conf.serial-console-conf@.service: don't pass --serial,
  this is meant to be parameters to agetty, not to the login program.
This commit is contained in:
Mathieu Trudel-Lapierre 2016-08-30 14:00:14 -04:00
parent 7ca0763103
commit 9065a68dc8
6 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
echo -n 'Press enter to configure: '
read REPLY
exec console-conf --serial "$@"

10
debian/changelog vendored
View File

@ -1,3 +1,13 @@
subiquity (0.0.13) UNRELEASED; urgency=medium
* debian/console-conf.*.serial: Start the console-conf wrappers from
their path in /usr/share/subiquity; no need to have them in /usr/bin.
* bin/console-conf-serial-wrapper: add --serial to the command-line.
* debian/console-conf.serial-console-conf@.service: don't pass --serial,
this is meant to be parameters to agetty, not to the login program.
-- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Tue, 30 Aug 2016 13:57:46 -0400
subiquity (0.0.12) yakkety; urgency=medium
[ Mathieu Trudel-Lapierre ]

View File

@ -11,7 +11,7 @@ ConditionPathExists=!/var/lib/console-conf/complete
[Service]
Environment=PYTHONPATH=/usr/share/subiquity
ExecStartPre=/bin/systemctl stop getty@%I
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf-wrapper %I $TERM
ExecStart=-/sbin/agetty -n --noclear -l /usr/share/subiquity/console-conf-wrapper %I $TERM
ExecStop=/bin/systemctl start getty@%I
#ExecStopPost=/bin/echo "Post stop, starting getty@%I"
#ExecStopPost=/bin/systemctl start getty@%I

View File

@ -1,3 +1,4 @@
bin/console-conf-tui usr/share/subiquity
bin/console-conf-wrapper usr/share/subiquity
bin/console-conf-serial-wrapper usr/share/subiquity
usr/share/subiquity/console_conf

View File

@ -1,2 +1 @@
/usr/share/subiquity/console-conf-tui /usr/bin/console-conf
/usr/share/subiquity/console-conf-wrapper /usr/bin/console-conf-wrapper

View File

@ -8,7 +8,7 @@ ConditionPathExists=!/var/lib/console-conf/complete
[Service]
Environment=PYTHONPATH=/usr/share/subiquity
ExecStartPre=/bin/systemctl stop serial-getty@%I
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf-wrapper --serial %I $TERM
ExecStart=-/sbin/agetty -n --noclear -l /usr/share/subiquity/console-conf-serial-wrapper %I $TERM
ExecStop=/bin/systemctl start serial-getty@%I
Type=idle
Restart=always