Commit Graph

1052 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
0903eb5cf8 UI: add and use display_html helper
This is used often, among other things also for some abort code, so
move the essence to the UI.

Allows to drop one global variable for proxinstall, which is a nice
side effect.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
5c6ca00a12 UI: add ISO env on setup
can be useful for UI's to get resources or the like

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
72bea99528 switch prompt, error and message calls to new UI infra
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
5f031868a5 proxinstall: wire up UI module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
bc05a8fc6b add basic UI plugin infrastructure
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Christoph Heiss
170ab052a1 tui: limit FloatEditView to 2 decimal places
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 15:09:53 +02:00
Christoph Heiss
d4d0f2bfee tui: error out if no harddisks were detected
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 15:09:53 +02:00
Christoph Heiss
706cdb2afd tui: round disk sizes when displaying
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Christoph Heiss
beec6a1754 tui: drop now-obsolete cargo config
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Wolfgang Bumiller
b5aa2ddfe3 tui: use network info
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
0889f35dcf buildsys: add prerequisites to compiled binaries target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
63ce0b1a09 buildsys: avoid copying over build dir and debs on test-deb target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
0190a2994a buildsys: add DSC & sbuild convenience target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
59597871f7 buildsys: use better defined clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
2d5382e86a buildsys: expand clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
67e0a9503c d/control: use misc:Depends and shlibs:Depends dh variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 15:08:03 +02:00
Thomas Lamprecht
99f0b52331 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 14:18:14 +02:00
Christoph Heiss
f7bd21a637 tui: left-align cell values in summary view
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Christoph Heiss
25e0af5812 tui: calculate default swap size for LVM installs based on system memory
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Christoph Heiss
80f54e90ae tui: fix minimum free LVM space default
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Christoph Heiss
429718b894 tui: add option to leave some disks unselected in RAID setups
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Christoph Heiss
d85180edf3 tui: rename raid levels 0/1 to align with GUI installer
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Christoph Heiss
4f2295a739 tui: simplify installer data path construction
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-19 13:39:31 +02:00
Thomas Lamprecht
0cf4be7de4 buildsys: add check-pve-tui target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 13:38:56 +02:00
Wolfgang Bumiller
2473d5dc2e tui: load runtime info, use disks
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-19 13:27:53 +02:00
Wolfgang Bumiller
066b9360ac tui: add runtime info serde structure
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-19 13:27:53 +02:00
Wolfgang Bumiller
1c5e103adf move dns into network section in runtime info
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-19 13:27:53 +02:00