Commit Graph

82 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 366d27713b remove crufty line that has a typoed variable name 2018-03-21 15:43:51 +13:00
Michael Hudson-Doyle d0da487895 avoid a strange apparmor bug/issue by invoking subiquity entrypoint directly
see https://forum.snapcraft.io/t/snapd-2-32-breaks-live-server-installer/4597 for more details
2018-03-21 15:42:55 +13:00
Michael Hudson-Doyle 68c15176ac some trivial stuff 2018-03-08 16:34:25 +13:00
Michael Hudson-Doyle 3ea98a47dd
Merge pull request #280 from CanonicalLtd/mwhudson/snap-created-service
have a subiquity-service be part of the snap
2018-02-13 13:01:31 +13:00
Michael Hudson-Doyle 1a939844fb use the journald event reporter that is now part of curtin 2018-02-12 13:37:00 +13:00
Michael Hudson-Doyle 6d08f080c2 we do not need this any more 2018-02-09 15:10:00 +13:00
Michael Hudson-Doyle 5198ff4b12 chmod u+x bin/subiquity-service :( 2018-02-09 14:18:32 +13:00
Michael Hudson-Doyle b5a6038f81 have a subiquity-service be part of the snap 2018-02-09 13:53:03 +13:00
Michael Hudson-Doyle 7b375d9d92 always load answers from a fixed path if it is present 2017-11-17 15:09:16 +13:00
Michael Hudson-Doyle 6919e5ce68 minimal implementation of canned answers
this allows automation of the enter-enter-enter flow, not much more than that
2017-11-17 13:25:16 +13:00
Michael Hudson-Doyle e3aadb195b add a way to run console-conf or subiquity with a subset of the screens 2017-10-10 09:21:42 +13:00
Michael Hudson-Doyle 5ed612399d add a trivial oneshot service we can order the subiquity.service in the install after to ensure the mounts are set up 2017-10-05 21:33:51 +13:00
Michael Hudson-Doyle 14c8b473c4 Merge branch 'master' into mwhudson/reporting-2 2017-09-20 13:20:27 +12:00
Dimitri John Ledkov 693f3e7c7d
Barebones i18n setup. 2017-09-18 14:14:39 +01:00
Michael Hudson-Doyle d756596093 hook up curtin's event reporting into journald and watch these messages during install 2017-09-18 22:50:00 +12:00
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 34624fafd3 Merge pull request #198 from CanonicalLtd/mwhudson/shift-tab-console
an attempt to make shift tab work in the linux console
2017-02-14 10:47:43 +13:00
Michael Hudson-Doyle f16bc954cf prevent C-c, C-\ from exiting the installer 2017-02-10 16:17:58 +13:00
Michael Hudson-Doyle cdbd52d642 an attempt to make shift tab work in the linux console 2017-02-10 16:07:26 +13:00
Michael Hudson-Doyle e95b624072 more unused stuff 2017-01-26 11:18:35 +13:00
Michael Hudson-Doyle 2408dda6c7 remove references to firstboot (an old name for console-conf?) 2017-01-26 11:18:03 +13:00
Michael Hudson-Doyle 60982157b0 rearrange systemd stuff to only run subiquity on tty1
for https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1654085
2017-01-20 16:28:50 +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
Michael Hudson-Doyle 47af1de57e remove setting of umask, redact wifi password from log file
The setting of umask was breaking configuring wifi :(
2016-10-26 11:02:23 +13:00
Michael Hudson-Doyle ce3735a2ef set umask in console-conf-tui to make log files private
this would also affect any other files console-conf creates, but afaict
that's only the netplan config which (a) should be private too and (b)
is handled specially anyway
2016-10-20 13:41:30 +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 d99d297c33 bin/console-conf-tui: drop requirement for /var/log/syslog to be readable. We don't actually go read it. 2016-08-31 16:21:59 -04:00
Mathieu Trudel-Lapierre 9161580c98 Revert "bin/console-conf-tui: drop requirement for /var/log/syslog to be readable. We don't actually go read it."
This reverts commit a7aeb13e99.
2016-08-31 16:21:01 -04:00
Mathieu Trudel-Lapierre a7aeb13e99 bin/console-conf-tui: drop requirement for /var/log/syslog to be readable. We don't actually go read it. 2016-08-31 14:57:01 -04: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
Michael Hudson-Doyle 392644262b ignore SIGQUIT too 2016-08-31 11:10:03 +12:00
Michael Hudson-Doyle d6cf8e1bcf prevent C-c / C-x from exiting console conf
I've left C-x as a way to get out in dry-run mode as that's useful for
debugging.
2016-08-31 10:58:26 +12: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
Mathieu Trudel-Lapierre 9065a68dc8 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.
2016-08-30 14:00:14 -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
Mathieu Trudel-Lapierre 69b12f54f9 Configure LOGDIR/LOGFILE for dryrun for the subiquity wrapper 2016-08-09 15:20:15 -04:00
Michael Hudson-Doyle 070a96bcc4 Write stamp file and logs to somewhere more sensible. 2016-08-05 14:41:50 +12:00
Mathieu Trudel-Lapierre e4e9edacfd Really drop curtin requirement. 2016-07-28 22:41:49 -04:00
Michael Hudson-Doyle e4d5c7fa85 stuff 2016-07-28 11:13:19 +12:00
Michael Hudson-Doyle 2c749d944c Have console-conf and subiquity check differing environments.
This means that console-conf no longer needs to have hdparm installed.

I'm not sure console-conf needs to call this at all TBH.
2016-07-26 15:09:44 +12:00