Dimitri John Ledkov
ab8ae0e936
Make a unified launcher
2019-03-21 12:20:41 +00:00
Michael Hudson-Doyle
69f018db5b
invoke curtin from the snap
2018-11-20 11:47:51 +13:00
Michael Hudson-Doyle
d6f634d646
use a custom console font
2018-06-26 11:20:31 +12:00
Scott Moser
af94275618
Make tox and Makefile more similar.
...
This does a few things with the end goal of making simplifying and
making consistent tox and 'make' methods of test or check.
Things here:
* move python programs out of bin and into their own main. Use
entry_points to get scripts written for them. One gain here is
that we no longer have python programs that are not named .py.
flake8 and friends would not check those programs by default.
* install scripts in bin/ using the setup.py scripts and adjust
snapcraft.yaml and debian packaging for that.
* declare and use PYTHON in Makefile to avoid repeating 'python3'
* declare and use CHECK_DIRS in Makefile for list of dirs to check.
* no longer run 'flake8' from 'make check' by default.
* remove the old tests/ directory.
2018-06-05 22:19:17 -04:00
Michael Hudson-Doyle
19dd965461
some self-review
2018-05-31 12:31:02 +12:00
Michael Hudson-Doyle
f2d0d0aade
update default snap store section and examples to server
2018-05-31 09:54:07 +12:00
Michael Hudson-Doyle
15a2c1867c
fix lint
2018-05-25 11:26:14 +12:00
Michael Hudson-Doyle
293793fa49
merge master
2018-05-25 11:06:23 +12:00
Ryan Harper
f8745a1cc3
pyflakes3 fixes for bin/console-conf-tui
2018-05-24 16:59:31 -05:00
Ryan Harper
3ff00ff866
pep8 fixes for bin/subiquity-tui
2018-05-24 16:59:31 -05:00
Ryan Harper
36c42179e2
pep8 fixes for bin/console-conf-tui
2018-05-24 16:59:31 -05:00
Michael Hudson-Doyle
ca1d7ba77b
parameterize store section to load
2018-05-23 11:38:42 +12:00
Michael Hudson-Doyle
919b292800
Merge branch 'master' into mwhudson/snap-screen
2018-05-22 22:47:36 +12:00
Michael Hudson-Doyle
ff19ac4409
add a flag to load snaps from example directory
2018-05-21 14:25:48 +12:00
Michael Hudson-Doyle
cbd5afe2c0
move imports of i18n higher so _ is always installed before tests are imported
2018-05-21 10:14:34 +12:00
Michael Hudson-Doyle
db4d8a537e
add a way to specify actions to take in the UI on the command line
...
--script takes a little python snippet to run in a helpful namespace
--click is a wrapper around --script to click a button
2018-05-01 12:29:29 +12:00
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