]> git.proxmox.com Git - pve-installer.git/log
pve-installer.git
11 months agoinstall: fix passing missing root volume name
Thomas Lamprecht [Tue, 20 Jun 2023 19:03:16 +0000 (21:03 +0200)]
install: fix passing missing root volume name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoadd Finished UI² message
Thomas Lamprecht [Tue, 20 Jun 2023 18:04:36 +0000 (20:04 +0200)]
add Finished UI² message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoinstall module: move over ZFS and BTRFS device getters
Thomas Lamprecht [Tue, 20 Jun 2023 18:03:58 +0000 (20:03 +0200)]
install module: move over ZFS and BTRFS device getters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: disk view: partition sizes are in GB
Thomas Lamprecht [Tue, 20 Jun 2023 16:14:54 +0000 (18:14 +0200)]
tui: disk view: partition sizes are in GB

The proxinstall takes a GB float here and multiplies it up to KB for
most parts, which is then passed to various tools, passing bytes here
makes this go bonkers and try to create a 4 EiB swap partition.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: lvm: crudely fix calculation mismatch
Thomas Lamprecht [Tue, 20 Jun 2023 16:14:09 +0000 (18:14 +0200)]
tui: lvm: crudely fix calculation mismatch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: use plain Proxmox ascii figlet in header
Thomas Lamprecht [Tue, 20 Jun 2023 16:12:44 +0000 (18:12 +0200)]
tui: use plain Proxmox ascii figlet in header

If, one would need to write the full product name, and as that is
already written in the "inner" dialogue header, lets just drop it
from the outer.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow-level: report errors and implement autor-reboot
Thomas Lamprecht [Tue, 20 Jun 2023 15:39:32 +0000 (17:39 +0200)]
low-level: report errors and implement autor-reboot

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: add initial implementation of low-level installer transport
Christoph Heiss [Tue, 20 Jun 2023 12:30:14 +0000 (14:30 +0200)]
tui: add initial implementation of low-level installer transport

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: make yes_no_dialog() accept a callback for negative responses too
Christoph Heiss [Tue, 20 Jun 2023 12:19:21 +0000 (14:19 +0200)]
tui: make yes_no_dialog() accept a callback for negative responses too

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agoUI: turn on autoflush for STDOUT
Christoph Heiss [Tue, 20 Jun 2023 12:17:25 +0000 (14:17 +0200)]
UI: turn on autoflush for STDOUT

Otherwise, when STDOUT is connected to a pipe, it will not get flushed
completely after each message, which might than hangs the installer UI.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: add back disk sorting
Christoph Heiss [Tue, 20 Jun 2023 12:10:52 +0000 (14:10 +0200)]
tui: add back disk sorting

This was accidentally removed with below commit.

Fixes: 4532cff ("run env: replace lsblk with hd_list but fix it up a bit")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: add "abort" button to installation progress screen
Christoph Heiss [Tue, 20 Jun 2023 12:07:00 +0000 (14:07 +0200)]
tui: add "abort" button to installation progress screen

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agotui: adapt install config serialization to proper format
Christoph Heiss [Tue, 20 Jun 2023 12:06:26 +0000 (14:06 +0200)]
tui: adapt install config serialization to proper format

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agoproxinstall: further clean ups
Thomas Lamprecht [Tue, 20 Jun 2023 14:01:59 +0000 (16:01 +0200)]
proxinstall: further clean ups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow level: support actual installation
Thomas Lamprecht [Tue, 20 Jun 2023 14:01:34 +0000 (16:01 +0200)]
low level: support actual installation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoproxinstall: cleanup imports
Thomas Lamprecht [Tue, 20 Jun 2023 13:44:28 +0000 (15:44 +0200)]
proxinstall: cleanup imports

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agosys command: add missing imports, switch to UI for event processing
Thomas Lamprecht [Tue, 20 Jun 2023 13:43:45 +0000 (15:43 +0200)]
sys command: add missing imports, switch to UI for event processing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofactor out installation into own module
Thomas Lamprecht [Tue, 20 Jun 2023 13:12:23 +0000 (15:12 +0200)]
factor out installation into own module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agostorage config: use strictures
Thomas Lamprecht [Tue, 20 Jun 2023 13:17:00 +0000 (15:17 +0200)]
storage config: use strictures

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomove ipconf into run-env
Thomas Lamprecht [Tue, 20 Jun 2023 13:15:47 +0000 (15:15 +0200)]
move ipconf into run-env

This adds some duplication there, but much safer than restructuring
stuff at this point in time, we can deal with unification later.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoconfig: always parse kernel cmdline on initialization
Thomas Lamprecht [Tue, 20 Jun 2023 13:14:22 +0000 (15:14 +0200)]
config: always parse kernel cmdline on initialization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomove assembling target and base directory into extract_data
Thomas Lamprecht [Tue, 20 Jun 2023 12:31:46 +0000 (14:31 +0200)]
move assembling target and base directory into extract_data

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agorun env: use single source of truth for block devices
Thomas Lamprecht [Tue, 20 Jun 2023 12:24:46 +0000 (14:24 +0200)]
run env: use single source of truth for block devices

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoconfig: note that we want to remove mngmt_nic_id in the future
Thomas Lamprecht [Tue, 20 Jun 2023 12:24:16 +0000 (14:24 +0200)]
config: note that we want to remove mngmt_nic_id in the future

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotui: include disk model in disk list
Wolfgang Bumiller [Tue, 20 Jun 2023 10:03:56 +0000 (12:03 +0200)]
tui: include disk model in disk list

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agorun env: replace lsblk with hd_list but fix it up a bit
Wolfgang Bumiller [Tue, 20 Jun 2023 10:01:36 +0000 (12:01 +0200)]
run env: replace lsblk with hd_list but fix it up a bit

Instead of lsblk we use the original `hd_list` to be closer
to what we originally had.
However, from the PVE codebase I copied over the use of the
`E: DEVNAME` property to find the `/dev` node like (since
some weird devices can have '!' in /sys with '/' in /dev),
drop the check for `/sys/block/$d/dev`, and provide both the
`/dev` and `/sys/block` path in the output array.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agod/rules: actually build in release mode
Thomas Lamprecht [Tue, 20 Jun 2023 11:29:12 +0000 (13:29 +0200)]
d/rules: actually build in release mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: add missing libjson-perl dependency
Thomas Lamprecht [Tue, 20 Jun 2023 11:27:29 +0000 (13:27 +0200)]
d/control: add missing libjson-perl dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolow-level: add dummy install with prompt and message test
Thomas Lamprecht [Tue, 20 Jun 2023 10:37:54 +0000 (12:37 +0200)]
low-level: add dummy install with prompt and message test

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>