Michael Hudson-Doyle
435ed77ade
fix crash on startup with no ip address
...
console-conf-write-login-details would crash if it ran before the system
got an ip address. re-jig things a bit so that it displays an nice message
when there is no ip address but still checks for a new address every 5s until
it finds one.
2017-03-28 15:54:50 +13:00
Michael Hudson-Doyle
3facaab59e
more care around how ttyname is displayed
2017-02-17 15:08:12 +13:00
Michael Hudson-Doyle
a8fce4da0f
write login-details.txt atomically
2016-11-10 12:45:56 +13:00
Michael Hudson-Doyle
7c7fc8218f
shuffle things around so that it works for a user created via an assertion
2016-11-10 11:59:39 +13:00
Michael Hudson-Doyle
7bef718e18
re-work logic, including having console-conf generate the file to show
2016-11-09 14:33:58 +13:00
Michael Hudson-Doyle
cbd2aa5321
mvo's patch to show a message until a user has a password
2016-11-09 14:23:31 +13:00
Michael Hudson-Doyle
c3a5a78784
turn off input echoing while waiting for return character
...
see LP: #1639917
2016-11-09 14:17:20 +13:00
Mathieu Trudel-Lapierre
fc10303150
Update code to follow latest `snap managed` API.
2016-10-07 11:34:45 -04:00
Mathieu Trudel-Lapierre
8478f1ab47
console-conf-wrapper: output of snap is-managed is "system is managed".
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-10-05 13:39:52 -04:00
Michael Hudson-Doyle
89e68d2b50
exit console-conf immediately on a managed device
2016-10-04 17:12:51 +13:00
Michael Hudson-Doyle
a4add7037d
Use console-conf-wrapper on the serial line again.
...
This means that the "Please press enter to configure" message is actually shown
now. But it turns out we need some stty magic so that newline actually works to
enter console-conf.
Fixes https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1621142
2016-09-13 15:44:30 +12:00
Mathieu Trudel-Lapierre
98cf79175e
More shuffling for gettys: reinstate the wrapper for VTs, make sure we display the issue file.
2016-08-30 22:20:00 -04:00
Mathieu Trudel-Lapierre
7c9f75b4ee
Yet more agetty tweaks to start console-conf correctly in a lazy manner.
2016-08-30 20:02:19 -04:00
Steve Langasek
7184f61937
debian/console-conf-wrapper: trap various signals in our shell script, as they should be in console-conf itself.
2016-08-30 15:31:50 -07:00
Mathieu Trudel-Lapierre
ddbb1abc9f
More wrapper fixes for serial console.
2016-08-30 16:59:15 -04:00
Michael Hudson-Doyle
acbaa05eb7
Add a shell wrapper for console-conf
...
This is Steve's idea for reducing the RAM used at rest.
2016-08-30 12:16:42 +12:00