]> git.proxmox.com Git - pve-installer.git/log
pve-installer.git
11 months agounconfigured: honor proxtui cmndline flag
Thomas Lamprecht [Tue, 20 Jun 2023 10:12:56 +0000 (12:12 +0200)]
unconfigured: honor proxtui cmndline flag

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agouncofigured: prepare for TUI and reworked installer config handling
Thomas Lamprecht [Tue, 20 Jun 2023 10:06:56 +0000 (12:06 +0200)]
uncofigured: prepare for TUI and reworked installer config handling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agowrite out install config as json on ack step for debugging
Thomas Lamprecht [Tue, 20 Jun 2023 10:04:02 +0000 (12:04 +0200)]
write out install config as json on ack step for debugging

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "target_hd" & "disk_selection" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 10:02:48 +0000 (12:02 +0200)]
switch "target_hd" & "disk_selection" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: use total memory info from runtime env
Christoph Heiss [Tue, 20 Jun 2023 09:02:16 +0000 (11:02 +0200)]
tui: use total memory info from runtime env

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: use network domain as default administrator email domain
Christoph Heiss [Tue, 20 Jun 2023 08:51:26 +0000 (10:51 +0200)]
tui: use network domain as default administrator email domain

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: fix parsing of FQDNs directly from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 08:50:10 +0000 (10:50 +0200)]
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>
11 months agotui: add better error handling to BootdiskOptions::get_values()
Christoph Heiss [Tue, 20 Jun 2023 08:22:41 +0000 (10:22 +0200)]
tui: add better error handling to BootdiskOptions::get_values()

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: fix unbounded size of advanced bootdisk dialog
Christoph Heiss [Tue, 20 Jun 2023 07:53:54 +0000 (09:53 +0200)]
tui: fix unbounded size of advanced bootdisk dialog

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: use country from runtime env info for default timezone and layout
Christoph Heiss [Tue, 20 Jun 2023 07:40:36 +0000 (09:40 +0200)]
tui: use country from runtime env info for default timezone and layout

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: use available network interfaces from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 07:26:53 +0000 (09:26 +0200)]
tui: use available network interfaces from runtime env info

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: directly parse gateway IP address from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 07:24:01 +0000 (09:24 +0200)]
tui: directly parse gateway IP address from runtime env info

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: bootdisk: sort disks alphabetically
Christoph Heiss [Tue, 20 Jun 2023 07:21:37 +0000 (09:21 +0200)]
tui: bootdisk: sort disks alphabetically

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: directly parse disks from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 07:19:20 +0000 (09:19 +0200)]
tui: directly parse disks from runtime env info

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: directly parse domain name from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 07:08:59 +0000 (09:08 +0200)]
tui: directly parse domain name from runtime env info

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: use `IpAddr` type for deserializing ip addresses directly
Christoph Heiss [Tue, 20 Jun 2023 07:00:12 +0000 (09:00 +0200)]
tui: use `IpAddr` type for deserializing ip addresses directly

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: directly parse network interface addresses from runtime env info
Christoph Heiss [Tue, 20 Jun 2023 06:59:39 +0000 (08:59 +0200)]
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>
11 months agotui: move installer logo into background and to the top
Christoph Heiss [Mon, 19 Jun 2023 13:20:51 +0000 (15:20 +0200)]
tui: move installer logo into background and to the top

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agoswitch "zfs_opts" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 09:08:32 +0000 (11:08 +0200)]
switch "zfs_opts" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "cidr", "gateway" & "dns" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 08:42:25 +0000 (10:42 +0200)]
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>
11 months agoswitch "hostname" & "domain" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:51:40 +0000 (09:51 +0200)]
switch "hostname" & "domain" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "mngmt_nic" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:36:57 +0000 (09:36 +0200)]
switch "mngmt_nic" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "mailto" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:20:32 +0000 (09:20 +0200)]
switch "mailto" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "password" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:14:42 +0000 (09:14 +0200)]
switch "password" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "keymap" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:08:59 +0000 (09:08 +0200)]
switch "keymap" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "timezone" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 07:03:16 +0000 (09:03 +0200)]
switch "timezone" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "country" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:53:38 +0000 (08:53 +0200)]
switch "country" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "maxvz" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:42:52 +0000 (08:42 +0200)]
switch "maxvz" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "minfree" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:38:32 +0000 (08:38 +0200)]
switch "minfree" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "maxroot" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:33:21 +0000 (08:33 +0200)]
switch "maxroot" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "swapsize" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:28:36 +0000 (08:28 +0200)]
switch "swapsize" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "hdsize" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:24:01 +0000 (08:24 +0200)]
switch "hdsize" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "filesys" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:16:26 +0000 (08:16 +0200)]
switch "filesys" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoswitch "autoreboot" over to central config
Thomas Lamprecht [Tue, 20 Jun 2023 06:04:40 +0000 (08:04 +0200)]
switch "autoreboot" over to central config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoadd beginnings of central config module with singleton
Thomas Lamprecht [Tue, 20 Jun 2023 05:34:03 +0000 (07:34 +0200)]
add beginnings of central config module with singleton

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agorun env: add kernel cmdline info
Thomas Lamprecht [Tue, 20 Jun 2023 05:29:11 +0000 (07:29 +0200)]
run env: add kernel cmdline info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoprovide a global singleton for RunEnv
Thomas Lamprecht [Tue, 20 Jun 2023 05:19:54 +0000 (07:19 +0200)]
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>
11 months agobuildsys: fix clean target
Thomas Lamprecht [Tue, 20 Jun 2023 05:34:46 +0000 (07:34 +0200)]
buildsys: fix clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofactor out storage config generation and handling
Thomas Lamprecht [Mon, 19 Jun 2023 19:43:13 +0000 (21:43 +0200)]
factor out storage config generation and handling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoiso env: add singleton getter
Thomas Lamprecht [Mon, 19 Jun 2023 19:43:43 +0000 (21:43 +0200)]
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>
11 months agomove setting global environment variables into ISO env
Thomas Lamprecht [Mon, 19 Jun 2023 19:16:03 +0000 (21:16 +0200)]
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>
11 months agomove getting boot mode into runtime env
Thomas Lamprecht [Mon, 19 Jun 2023 19:45:19 +0000 (21:45 +0200)]
move getting boot mode into runtime env

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agore-use geoip-resolved country from runtime env
Thomas Lamprecht [Mon, 19 Jun 2023 19:13:35 +0000 (21:13 +0200)]
re-use geoip-resolved country from runtime env

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agorun env: add & use helper to query total memory
Thomas Lamprecht [Mon, 19 Jun 2023 19:04:50 +0000 (21:04 +0200)]
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>
11 months agoearly initialize log
Thomas Lamprecht [Mon, 19 Jun 2023 19:03:47 +0000 (21:03 +0200)]
early initialize log

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agorename module wide env variable to iso_env
Thomas Lamprecht [Mon, 19 Jun 2023 18:51:55 +0000 (20:51 +0200)]
rename module wide env variable to iso_env

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow level: init stdio based UI-interface
Thomas Lamprecht [Mon, 19 Jun 2023 18:18:00 +0000 (20:18 +0200)]
low level: init stdio based UI-interface

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoproxinstall: avoid printing on STDOUT
Thomas Lamprecht [Mon, 19 Jun 2023 18:11:09 +0000 (20:11 +0200)]
proxinstall: avoid printing on STDOUT

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoUI: add progress and process_events helper
Thomas Lamprecht [Mon, 19 Jun 2023 18:04:58 +0000 (20:04 +0200)]
UI: add progress and process_events helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobundle up most of global GTK state into single hash
Thomas Lamprecht [Mon, 19 Jun 2023 18:04:12 +0000 (20:04 +0200)]
bundle up most of global GTK state into single hash

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoreplace calls to intermediate display_html with direct one
Thomas Lamprecht [Mon, 19 Jun 2023 16:59:47 +0000 (18:59 +0200)]
replace calls to intermediate display_html with direct one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoextract data: support way to semi-gracefully abort
Thomas Lamprecht [Mon, 19 Jun 2023 16:55:32 +0000 (18:55 +0200)]
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>
11 months agoUI: add and use display_html helper
Thomas Lamprecht [Mon, 19 Jun 2023 16:31:36 +0000 (18:31 +0200)]
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>
11 months agoUI: add ISO env on setup
Thomas Lamprecht [Mon, 19 Jun 2023 16:30:15 +0000 (18:30 +0200)]
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>
11 months agoswitch prompt, error and message calls to new UI infra
Thomas Lamprecht [Mon, 19 Jun 2023 15:49:14 +0000 (17:49 +0200)]
switch prompt, error and message calls to new UI infra

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoproxinstall: wire up UI module
Thomas Lamprecht [Mon, 19 Jun 2023 15:42:59 +0000 (17:42 +0200)]
proxinstall: wire up UI module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoadd basic UI plugin infrastructure
Thomas Lamprecht [Mon, 19 Jun 2023 14:59:22 +0000 (16:59 +0200)]
add basic UI plugin infrastructure

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: limit `FloatEditView` to 2 decimal places
Christoph Heiss [Mon, 19 Jun 2023 12:52:41 +0000 (14:52 +0200)]
tui: limit `FloatEditView` to 2 decimal places

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: error out if no harddisks were detected
Christoph Heiss [Mon, 19 Jun 2023 12:48:00 +0000 (14:48 +0200)]
tui: error out if no harddisks were detected

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: round disk sizes when displaying
Christoph Heiss [Mon, 19 Jun 2023 12:35:05 +0000 (14:35 +0200)]
tui: round disk sizes when displaying

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: drop now-obsolete cargo config
Christoph Heiss [Mon, 19 Jun 2023 11:32:29 +0000 (13:32 +0200)]
tui: drop now-obsolete cargo config

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: use network info
Wolfgang Bumiller [Mon, 19 Jun 2023 12:50:55 +0000 (14:50 +0200)]
tui: use network info

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: add prerequisites to compiled binaries target
Thomas Lamprecht [Mon, 19 Jun 2023 12:57:20 +0000 (14:57 +0200)]
buildsys: add prerequisites to compiled binaries target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: avoid copying over build dir and debs on test-deb target
Thomas Lamprecht [Mon, 19 Jun 2023 12:55:31 +0000 (14:55 +0200)]
buildsys: avoid copying over build dir and debs on test-deb target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: add DSC & sbuild convenience target
Thomas Lamprecht [Mon, 19 Jun 2023 12:55:03 +0000 (14:55 +0200)]
buildsys: add DSC & sbuild convenience target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: use better defined clean target
Thomas Lamprecht [Mon, 19 Jun 2023 12:54:53 +0000 (14:54 +0200)]
buildsys: use better defined clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: expand clean target
Thomas Lamprecht [Mon, 19 Jun 2023 12:50:27 +0000 (14:50 +0200)]
buildsys: expand clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: use misc:Depends and shlibs:Depends dh variables
Thomas Lamprecht [Mon, 19 Jun 2023 12:50:04 +0000 (14:50 +0200)]
d/control: use misc:Depends and shlibs:Depends dh variables

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Mon, 19 Jun 2023 12:18:14 +0000 (14:18 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: left-align cell values in summary view
Christoph Heiss [Mon, 19 Jun 2023 10:32:52 +0000 (12:32 +0200)]
tui: left-align cell values in summary view

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: calculate default swap size for LVM installs based on system memory
Christoph Heiss [Mon, 19 Jun 2023 07:02:30 +0000 (09:02 +0200)]
tui: calculate default swap size for LVM installs based on system memory

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: fix minimum free LVM space default
Christoph Heiss [Mon, 19 Jun 2023 07:01:51 +0000 (09:01 +0200)]
tui: fix minimum free LVM space default

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: add option to leave some disks unselected in RAID setups
Christoph Heiss [Mon, 19 Jun 2023 06:46:49 +0000 (08:46 +0200)]
tui: add option to leave some disks unselected in RAID setups

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: rename raid levels 0/1 to align with GUI installer
Christoph Heiss [Mon, 19 Jun 2023 06:42:10 +0000 (08:42 +0200)]
tui: rename raid levels 0/1 to align with GUI installer

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: simplify installer data path construction
Christoph Heiss [Mon, 19 Jun 2023 06:30:51 +0000 (08:30 +0200)]
tui: simplify installer data path construction

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agobuildsys: add check-pve-tui target
Thomas Lamprecht [Mon, 19 Jun 2023 11:38:56 +0000 (13:38 +0200)]
buildsys: add check-pve-tui target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: load runtime info, use disks
Wolfgang Bumiller [Mon, 19 Jun 2023 11:24:45 +0000 (13:24 +0200)]
tui: load runtime info, use disks

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agotui: add runtime info serde structure
Wolfgang Bumiller [Mon, 19 Jun 2023 10:17:08 +0000 (12:17 +0200)]
tui: add runtime info serde structure

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agomove dns into network section in runtime info
Wolfgang Bumiller [Mon, 19 Jun 2023 10:16:35 +0000 (12:16 +0200)]
move dns into network section in runtime info

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agolow-level: drop outdated comment
Thomas Lamprecht [Mon, 19 Jun 2023 10:40:03 +0000 (12:40 +0200)]
low-level: drop outdated comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow-level: dump runtime enviroment
Thomas Lamprecht [Mon, 19 Jun 2023 10:38:14 +0000 (12:38 +0200)]
low-level: dump runtime enviroment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow level installer: init a per-command log
Thomas Lamprecht [Mon, 19 Jun 2023 10:10:11 +0000 (12:10 +0200)]
low level installer: init a per-command log

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: install RunEnv module
Thomas Lamprecht [Mon, 19 Jun 2023 10:09:35 +0000 (12:09 +0200)]
buildsys: install RunEnv module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agorun env: do not export non-existing is_test_mode method
Thomas Lamprecht [Mon, 19 Jun 2023 10:08:06 +0000 (12:08 +0200)]
run env: do not export non-existing is_test_mode method

Probably left over from using ISOEnv as base

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoRunEnv: exclude zfs in query_blockdevs
Wolfgang Bumiller [Mon, 19 Jun 2023 09:40:46 +0000 (11:40 +0200)]
RunEnv: exclude zfs in query_blockdevs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoadd Proxmox::Install::RunEnv module
Wolfgang Bumiller [Mon, 19 Jun 2023 08:47:22 +0000 (10:47 +0200)]
add Proxmox::Install::RunEnv module

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agouse separate faster and incremental DEB build for check targets
Thomas Lamprecht [Mon, 19 Jun 2023 09:47:49 +0000 (11:47 +0200)]
use separate faster and incremental DEB build for check targets

Faster as lintian isn't called on the resulting package and
incremental, as the no-pre-clean (-nc) flag is passed to build
package.

This is mostly relevant since the rust based TUI prototype got added
to packaging, as those needs quite a bit longer compared to copying
perl module files.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopackage rust based TUI installer prototype
Thomas Lamprecht [Mon, 19 Jun 2023 09:43:50 +0000 (11:43 +0200)]
package rust based TUI installer prototype

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: use full DEB_VERSION
Thomas Lamprecht [Mon, 19 Jun 2023 09:41:31 +0000 (11:41 +0200)]
buildsys: use full DEB_VERSION

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agodebian: wrap-and-sort -tkn
Thomas Lamprecht [Mon, 19 Jun 2023 09:17:37 +0000 (11:17 +0200)]
debian: wrap-and-sort -tkn

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoadd top-level cargo wrokspace
Thomas Lamprecht [Mon, 19 Jun 2023 09:16:07 +0000 (11:16 +0200)]
add top-level cargo wrokspace

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: build with sources from debian pacakges
Thomas Lamprecht [Mon, 19 Jun 2023 09:15:24 +0000 (11:15 +0200)]
tui: build with sources from debian pacakges

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agostop main loop when closing the main window
Maximiliano Sandoval [Fri, 16 Jun 2023 10:57:43 +0000 (12:57 +0200)]
stop main loop when closing the main window

Without this change closing the main window does not exit the main loop.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agoexit process gracefully
Maximiliano Sandoval [Fri, 16 Jun 2023 10:57:42 +0000 (12:57 +0200)]
exit process gracefully

We make sure that all exit calls quit the Glib main loop and child
processes.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agostop using Gtk3::Window->set_has_resize_grip
Maximiliano Sandoval [Thu, 15 Jun 2023 12:15:03 +0000 (14:15 +0200)]
stop using Gtk3::Window->set_has_resize_grip

The property GtkWindow::has-resize-grip was deprecated in GTK 3.14,
instead we make the window unresizable.

Note that we set the value of resizable only after the window has been
mapped and knows how much space it needs, also note that this only works
correctly if the window is properly displayed via present.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agostop using Gtk3::HSeparator
Maximiliano Sandoval [Thu, 15 Jun 2023 12:15:02 +0000 (14:15 +0200)]
stop using Gtk3::HSeparator

This was deprecated in GTK 3.2, the replacement Gtk3::Separator was
added in GTK 3.0.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agostop using Gtk3::HBox and Gtk3::VBox
Maximiliano Sandoval [Thu, 15 Jun 2023 12:15:01 +0000 (14:15 +0200)]
stop using Gtk3::HBox and Gtk3::VBox

These widgets were deprecated in GTK 3.2 and replaced by Gtk3::Box which
was introduced in 3.0.

The packing changes require to horizontally expand the WebKit2::WebView
widget.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agostop using Gtk3::Misc->set_alignment
Maximiliano Sandoval [Thu, 15 Jun 2023 12:15:00 +0000 (14:15 +0200)]
stop using Gtk3::Misc->set_alignment

This was deprecated in GTK 3.14, instead we use
GtkLabel:{xalign,yalign}. Note that by default they are both set to 0.5.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agotui: no need to have './' fallible
Wolfgang Bumiller [Fri, 16 Jun 2023 10:23:17 +0000 (12:23 +0200)]
tui: no need to have './' fallible

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agotui: only count exact example email address as invalid
Wolfgang Bumiller [Fri, 16 Jun 2023 10:23:27 +0000 (12:23 +0200)]
tui: only count exact example email address as invalid

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>