Commit Graph

2170 Commits

Author SHA1 Message Date
Michael Hudson-Doyle bee1109a2d Much more fine grained answers support for networking. 2018-10-31 09:59:31 +13:00
Michael Hudson-Doyle 5f8e3dc2a4 do not call next-screen from a background thread 2018-10-31 09:58:58 +13:00
Michael Hudson-Doyle 09bbe3ff19 Do not call the default route waiter repeatedly.
This can crash when multiple interfaces get routes.
2018-10-31 09:58:58 +13:00
Michael Hudson-Doyle 15b6bb1114 Major refactor of network model
The main thrust of this is to not create virtual interfaces until
applying the config.

This meant that the network model has to change a bit to be able to
represent interfaces that do not yet exist on the system. I did this
by ripping out most of the existing network device code: now a
NetworkDev is really just a wrapper for the config for a device and (if
it exists) the netlink data too. A few places had to adjust to checking
if the netlink info is available before accessing it but all in all it
was not that painful.

There are a few other refactorings in this commit that perhaps should be
split out (how the bond parameters are handled, some stuff about
resizing the table rows when interfaces are edited) but it doesn't
really seem worth it.
2018-10-31 09:58:56 +13:00
Michael Hudson-Doyle ee1a7b69a7
Merge pull request #387 from sil2100/agetty-i
agetty needs an explicit -i to not to display the /etc/issue file
2018-08-06 09:33:25 +12:00
Łukasz 'sil2100' Zemczak 14c3d43b24 agetty needs an explicit -i to not to display the /etc/issue file before the login prompt. This was the default in the past probably. 2018-08-03 11:46:32 +02:00
Michael Hudson-Doyle ffed9d3491 more pessimism 2018-07-26 10:01:26 +12:00
Michael Hudson-Doyle 952787e884 yet another "prevent used RAID devices from being used twice" bug 2018-07-24 22:55:04 +12:00
Michael Hudson-Doyle 8cbc47a044 use even less of the theoretical space of a RAID 2018-07-23 14:40:03 +12:00
Michael Hudson-Doyle 22e4024e91 prevent partitions RAID devices from being part of RAIDs or LVM vgs 2018-07-23 14:31:52 +12:00
Michael Hudson-Doyle 2d3342e5ff do not grey out SWAP in fs summary 2018-07-23 10:52:31 +12:00
Michael Hudson-Doyle d94da51987 fix formatting entire device as swap
https://bugs.launchpad.net/subiquity/+bug/1782743
2018-07-23 10:45:22 +12:00
Michael Hudson-Doyle 90c6d0abab fix mismerge prevented RAID devices from being part of further RAIDs or LVM vgs
https://bugs.launchpad.net/subiquity/+bug/1782635
2018-07-23 10:42:12 +12:00
Michael Hudson-Doyle 7a86603539 prevent bonding of bonds
https://bugs.launchpad.net/bugs/1782397
2018-07-23 10:39:14 +12:00
Michael Hudson-Doyle 96ee3db409 make example CIDR form address family appropriate
https://bugs.launchpad.net/bugs/1782391
2018-07-23 10:38:06 +12:00
Michael Hudson-Doyle 7f766e93a1 forbid bonding of vlans
https://bugs.launchpad.net/bugs/1782351
2018-07-23 10:34:41 +12:00
Michael Hudson-Doyle a470ef082a
Merge pull request #386 from mwhudson/reserved-usernames
do not let the user choose a reserved username
2018-07-17 10:54:50 +12:00
Michael Hudson-Doyle 67ebf6ad35 do not let the user choose a reserved username
using the same logic as d-i
2018-07-17 10:32:48 +12:00
Michael Hudson-Doyle 0004174bd5 correctly set footer on final screen 2018-07-16 22:51:04 +12:00
Michael Hudson-Doyle 42b339605c make button labels more consistent
especially back vs cancel

for https://bugs.launchpad.net/subiquity/+bug/1781457
2018-07-16 22:45:36 +12:00
Michael Hudson-Doyle 5d42ace4c9 improve layout of keyboard detection dialogs 2018-07-16 20:31:37 +12:00
Michael Hudson-Doyle d4fa1d006a fix a crash on keyboard detection 2018-07-16 20:19:50 +12:00
Michael Hudson-Doyle 42b58c5232 relax github username validation
because the rules on the usernames you can create now are more restrictive
than the rules have been in the past.

for https://bugs.launchpad.net/subiquity/+bug/1780868
2018-07-16 14:27:58 +12:00
Michael Hudson-Doyle d95f089a04 add arrows at end of scrollbar
for https://bugs.launchpad.net/subiquity/+bug/1781460
2018-07-16 12:44:38 +12:00
Michael Hudson-Doyle 53fb81a65b correctly call wrapped lost_focus in _Validator.lost_focus
fixes https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1781429
2018-07-16 12:44:38 +12:00
Michael Hudson-Doyle 5295a7c803 stop trying to display where a common mountpoint is already mounted
fixes https://bugs.launchpad.net/subiquity/+bug/1781454
2018-07-16 12:44:38 +12:00
Michael Hudson-Doyle 5a3f8dedb8
Merge pull request #385 from mwhudson/optional-if-dchp-fails
mark interfaces that have dhcp enabled but did not get an address as optional
2018-07-12 14:23:39 +12:00
Michael Hudson-Doyle f19a453e0e mark interfaces that have dhcp enabled but did not get an address as optional 2018-07-12 14:17:20 +12:00
Michael Hudson-Doyle 74e705ce95
Merge pull request #384 from mwhudson/bond
add bond support
2018-07-12 14:08:43 +12:00
Michael Hudson-Doyle 40a90a8894 depend on newer probert 2018-07-12 11:39:40 +12:00
Michael Hudson-Doyle 437f42b599 lint 2018-07-12 11:36:30 +12:00
Michael Hudson-Doyle f3b0d13fbe a proper multi-nic selector 2018-07-12 10:10:08 +12:00
Michael Hudson-Doyle 07ac05b6d3 view improvements 2018-07-11 22:02:52 +12:00
Michael Hudson-Doyle 46c0d598ad first cut at a bond form that handles devices too 2018-07-11 22:02:52 +12:00
Michael Hudson-Doyle 5e683dcc1f add create bond button 2018-07-11 22:02:52 +12:00
Michael Hudson-Doyle 2f149a8aac enable/disable bond options as bonding mode changes 2018-07-11 22:02:52 +12:00
Dimitri John Ledkov 87558f0074 lint 2018-07-11 22:02:52 +12:00
Dimitri John Ledkov 88b64ca7fd Fix up bond netplan. 2018-07-11 22:02:52 +12:00
Dimitri John Ledkov 87ef3749e6 Finish bond master/slaves. 2018-07-11 22:02:52 +12:00
Dimitri John Ledkov e0d231f5d7 Create bond 2018-07-11 22:02:52 +12:00
Michael Hudson-Doyle 070d36ba07
Merge pull request #383 from mwhudson/finer-network-refreshes
Finer network refreshes
2018-07-11 15:29:25 +12:00
Michael Hudson-Doyle 0457985208 fixup tests 2018-07-11 14:55:41 +12:00
Michael Hudson-Doyle 535a0f3b04 fix editing an interface 2018-07-11 09:43:58 +12:00
Michael Hudson-Doyle c21cec6fdc fix logic around waiting for udev to settle to avoid busy loop 2018-07-11 09:41:56 +12:00
Michael Hudson-Doyle e91308e8b9 close any dialog open for an interface that is deleted 2018-07-11 09:36:14 +12:00
Michael Hudson-Doyle c69b89b4df expand a whinge about urwid's focus behaviour 2018-07-11 09:35:01 +12:00
Michael Hudson-Doyle 91def10468 improve message on vlan interfaces 2018-07-10 22:58:47 +12:00
Michael Hudson-Doyle 53a14e30ad make updates to network screen in response to netlink events more finegrained 2018-07-10 13:25:05 +12:00
Michael Hudson-Doyle 1701246d12 refactor how device row gets created a bit 2018-07-10 12:34:42 +12:00
Michael Hudson-Doyle b3636cfcd9 refactor how netdev action menu gets populated 2018-07-10 12:30:01 +12:00