Commit Graph

979 Commits

Author SHA1 Message Date
Thomas Lamprecht
2630cca401 write out install config as json on ack step for debugging
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 12:04:02 +02:00
Thomas Lamprecht
5bcefda0b4 switch "target_hd" & "disk_selection" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 12:02:48 +02:00
Christoph Heiss
7e68e30ee3 tui: use total memory info from runtime env
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
c7d3d928f7 tui: use network domain as default administrator email domain
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
81039264f2 tui: fix parsing of FQDNs directly from runtime env info
The JSON deserializer always expects to return an owned string.

Fixes: 7762d12 ("tui: directly parse domain name from runtime env info")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
994c4ff0a7 tui: add better error handling to BootdiskOptions::get_values()
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
fccf6bb019 tui: fix unbounded size of advanced bootdisk dialog
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
0e42d278a8 tui: use country from runtime env info for default timezone and layout
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
efdd5d6f06 tui: use available network interfaces from runtime env info
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
eb9780b410 tui: directly parse gateway IP address from runtime env info
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
fdf237b080 tui: bootdisk: sort disks alphabetically
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
5dd6b6edb2 tui: directly parse disks from runtime env info
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
8bdbd4aa16 tui: directly parse domain name from runtime env info
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
0118e7907d tui: use IpAddr type for deserializing ip addresses directly
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
c0e8726e17 tui: directly parse network interface addresses from runtime env info
This then allows to skip 2 levels of if-lets later on.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Christoph Heiss
08ad8ed63c tui: move installer logo into background and to the top
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-20 11:09:39 +02:00
Thomas Lamprecht
6edd095ad4 switch "zfs_opts" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 11:08:32 +02:00
Thomas Lamprecht
7f3941d1fe switch "cidr", "gateway" & "dns" over to central config
allows to drop quite a few module wide variables for GUI widgets,
which haven been re-created everytime the step got visited anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 10:42:27 +02:00
Thomas Lamprecht
e02f38dcb6 switch "hostname" & "domain" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:51:40 +02:00
Thomas Lamprecht
8a7e31ce11 switch "mngmt_nic" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:37:01 +02:00
Thomas Lamprecht
8924c14514 switch "mailto" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:20:32 +02:00
Thomas Lamprecht
a024147be9 switch "password" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:18:33 +02:00
Thomas Lamprecht
b3bcf70e76 switch "keymap" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:08:59 +02:00
Thomas Lamprecht
2959225ba4 switch "timezone" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 09:03:16 +02:00
Thomas Lamprecht
74041d68e1 switch "country" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:55:28 +02:00
Thomas Lamprecht
140f2e85e3 switch "maxvz" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:42:52 +02:00
Thomas Lamprecht
35e7bf169d switch "minfree" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:38:32 +02:00
Thomas Lamprecht
b4ab3f1926 switch "maxroot" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:33:21 +02:00
Thomas Lamprecht
ef41b04996 switch "swapsize" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:28:36 +02:00
Thomas Lamprecht
a8a14c4d44 switch "hdsize" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:24:01 +02:00
Thomas Lamprecht
cd1a45ade1 switch "filesys" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:16:26 +02:00
Thomas Lamprecht
0a3ac9827b switch "autoreboot" over to central config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:04:40 +02:00
Thomas Lamprecht
390889ab51 add beginnings of central config module with singleton
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 08:03:04 +02:00
Thomas Lamprecht
88adf31586 run env: add kernel cmdline info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 07:54:31 +02:00
Thomas Lamprecht
ea3b7cae80 provide a global singleton for RunEnv
we should only use the exact same set of values everywhere any way
for this, a good hint that a singleton is a good fit and this is
global info.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 07:54:31 +02:00
Thomas Lamprecht
5a947984a5 buildsys: fix clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 07:54:31 +02:00
Thomas Lamprecht
09480a9a06 factor out storage config generation and handling
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
ad9ef5e7fb iso env: add singleton getter
this is basically global state, so don't bend overt backwards in
passing it around, just access it wherever..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
ddd96e5cb9 move setting global environment variables into ISO env
could be also done in RunEnv, as one could argue both, this is
set at runtime, and this is for the ISO installer environment.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
71583761ea move getting boot mode into runtime env
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
66e975cfae re-use geoip-resolved country from runtime env
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
b91f9cadf2 run env: add & use helper to query total memory
maybe there's a better place soon as just adding it top-level into
the install runtime env.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
8d479e2607 early initialize log
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
84f90cbb1c rename module wide env variable to iso_env
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
8b39b0aa72 low level: init stdio based UI-interface
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
5b43e82d2b proxinstall: avoid printing on STDOUT
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
3f46361562 UI: add progress and process_events helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
2266526b79 bundle up most of global GTK state into single hash
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
efc7a8be4e replace calls to intermediate display_html with direct one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
693c5d4b3f extract data: support way to semi-gracefully abort
to avoid that we need to have html/ui flow handling deep in installer
code that just shouldn't have to care about this..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00