]>
git.proxmox.com Git - pve-installer.git/log
Maximiliano Sandoval [Wed, 21 Jun 2023 08:55:05 +0000 (10:55 +0200)]
fix #4643: show a confirmation dialog when clicking abort
Note that unlike the rest of the file, we connect to the response signal
instead of using Gtk3::Dialog->run, the reason is that run blocks the
main loop used by GTK and this undesirable to the point where
Gtk3::Dialog->run was removed for GTK 4.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 10:09:24 +0000 (12:09 +0200)]
tui: refresh summary view if it is switched back to
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 09:49:24 +0000 (11:49 +0200)]
tui: make HVM extension not being present a non-fatal warning
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 09:44:01 +0000 (11:44 +0200)]
tui: assume that the installer is run from the repo root in debug mode
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 09:40:44 +0000 (11:40 +0200)]
tui: do not fail completely on invalid domain names
Since we already handly non-present domain names, invalid names can be
handled the same way, as not to completely fail the installation.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 09:38:00 +0000 (11:38 +0200)]
tui: allow one-part FQDNs/domains
Otherwise, the user would be blocked from continuing the the installer,
instead just being presented with an error.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Thomas Lamprecht [Wed, 21 Jun 2023 09:58:36 +0000 (11:58 +0200)]
gtk: return truthy for rescheduling the timer for autoreboot
This definitively worked without that value when the functionality
was first added in
dfc02f3 ("fix #3093: allow to automatically reboot
on installation success"), so possibly something new with the glib,
gtk, or the perl bindings in bookworm..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 21 Jun 2023 09:52:14 +0000 (11:52 +0200)]
run env: make addresses optional, include all interfaces
Similar to our actual battle proven get_ip_config, but as the TUI
uses this one, and switching to it rather more risk, make just
addresses optional, add skip for "lo" loopback and don't skip ifaces
that aren't UP in the current helper.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Wed, 21 Jun 2023 08:37:33 +0000 (10:37 +0200)]
tui: slight FloatEditView improvement
with this you can type without removing the decimal places, but if
you type inside the decimal places it'll just move the cursor to the
end and do nothing
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 21 Jun 2023 08:45:28 +0000 (10:45 +0200)]
config: avoid warning if no country was detected
e.g., due to having no network (no DHCP lease)
Reported-by: Christian Ebner <c.ebner@proxmox.com>
Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 21 Jun 2023 08:44:38 +0000 (10:44 +0200)]
config: fix missing include of Log module
Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 08:35:13 +0000 (10:35 +0200)]
tui: only focus summary table if it can be scrolled
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 08:26:07 +0000 (10:26 +0200)]
tui: set detected keyboard layout at installer launch
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 07:31:50 +0000 (09:31 +0200)]
tui: make auto-deteced routes optional
If, for some reason, the network is not properly configured (due to
e.g. no DHCP server being present on the network), there will be no
routes in the runtime environment as well. So do not depend on that,
otherwise the installer fails at the start.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 07:22:56 +0000 (09:22 +0200)]
tui: skip serializing empty fields for install config
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 07:21:53 +0000 (09:21 +0200)]
tui: make disk swap-, max-root-, max-data- and min-lvm-free-size optional
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 07:20:59 +0000 (09:20 +0200)]
tui: allow numeric & disk size edit views to be empty
Bit of a retro-fit I guess, could maybe get improved in the future.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 06:42:59 +0000 (08:42 +0200)]
tui: run rustfmt
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 06:37:13 +0000 (08:37 +0200)]
low level: fix test-session progress
In
a8fbe0ff , the protocol was changed; such that the TUI now multiplies
the value by 100. Thus divide it here by 100 before sending it off.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 06:30:02 +0000 (08:30 +0200)]
tui: simplify test-mode evaluation
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 06:09:29 +0000 (08:09 +0200)]
tui: drop unneeded parameter from InstallerBackgroundView::new()
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 05:52:34 +0000 (07:52 +0200)]
tui: drop useless gitattributes file
Since the cargo lockfile was removed from the repo in
74e3a21 , this
became useless.
Fixes: 74e3a21 ("tui: remove cargo lockfile")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Christoph Heiss [Wed, 21 Jun 2023 05:50:13 +0000 (07:50 +0200)]
gitignore: merge TUI .gitignore into top-level
Since the TUI was put into a top-level workspace, the `target` folder
and lockfile exist too on that level.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 20:03:01 +0000 (22:03 +0200)]
bump version to 8.0.4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 20:02:13 +0000 (22:02 +0200)]
proxinstall: re-add Encode module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 19:37:04 +0000 (21:37 +0200)]
bump version to 8.0.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 19:36:22 +0000 (21:36 +0200)]
tui: avoid using domain as FQDN, hard-code product as workaround
Using the product is actually fine, but we should derive it from the
ISO env, not hard-coding "pve", but for now ok enough.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 19:25:07 +0000 (21:25 +0200)]
gtk: fix initial default for FQDN
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 19:08:58 +0000 (21:08 +0200)]
low level: drop extra exit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 20 Jun 2023 19:06:59 +0000 (21:06 +0200)]
tui: fix passing disk selection, use index
Currently the installer depends on the index to derive the selected
disks, so use that instead of a wishing-how-it-could-be approach.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>