installer: Skip network selection dialogs when there is no choice.
authorLudovic Courtès <ludo@gnu.org>
Mon, 6 May 2019 20:23:42 +0000 (22:23 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 May 2019 21:21:33 +0000 (23:21 +0200)
commit46c102ca5e76ffc1daa42edba439eee9fd0f102c
treecad356abc78a17780a4b40b74042dde2c0c11420
parentd1e5f758e128a3c1042c98563c5b87b81b2f187a
installer: Skip network selection dialogs when there is no choice.

Previously, for a machine that only has wired networking, and only one
such network, we'd have to go through two selection boxes.  Now we just
skip both.

* gnu/installer/newt/ethernet.scm (run-ethernet-page): When
'ethernet-services' returns one element, return it directly without
opening a listbox selection.
* gnu/installer/newt/network.scm (run-technology-page): Likewise.
gnu/installer/newt/ethernet.scm
gnu/installer/newt/network.scm