Commit Graph

979 Commits

Author SHA1 Message Date
Thomas Lamprecht
e58e2f5cf0 fix call to logical_blocksize
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 11:16:04 +02:00
Thomas Lamprecht
c017c55ea8 fixup released distro
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:39:25 +02:00
Thomas Lamprecht
e23aeee4fa buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
21757a995b bump version to 8.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
c2d5b241f1 visibility fixes for calling into sys/block helpers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
521662f8f1 unconfigured: call setupcon
to ensure any changes made by the installer/iso environment get
applied

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
2c757f5efb avoid global $cmap variable and refactor use sites
While we still rely on the global $env, that is more contained and
capsuled, and with moving over to that a further split, or move to a
singleton, is easier in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
76e463c505 contain country, time zone and keymap parsing to env module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
850fac6b08 env: code/style cleanup cmap/locale info parser
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
d5165292aa move cmap/zone parsing to env module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
9473f45f45 move assembling base-directory locations into env
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
cc9987a96e code/style cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
053568901b test: allow to pass CD builder directory via environment
Not all testers have that located in the parent directory.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
6c58393d36 restructure env hash
in preparation of moving more installer environment info in there.
Move also the (currently unused) CD info in there

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
0387544f2d call Gtk3::init manually
When using the module -init switch, the init method was called in
module import method, which means every time this was loaded, even if
just for a quick syntax+ check using `perl -I. -wc`, failing then if
no X11 connection was available.

Calling this manually after module load finished should have no
consequences, and if, that should be fixed there, without going back
to doing GUI init in module load/import steps - that's just ugly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
3edb534340 clean up country map parser
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
40fbf8e63b move global cached disk state into block module
.. and introduce some helpers to finding/getting cached disks.

The hd_list method, which scans for physical disks, can be made
private with this change.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
408a519a59 sys block: cleanup disk list a bit
The assignment to () is confusing, as that's effectively identical
with not assigning it at all and later auto-vivify it to an array
ref, make that more explicit instead.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
7b0a64c1bf sys cmd: use croak instead of die for caller context
it's more useful if those errors contain the caller site location

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
aef8faa938 avoid second module wide test_images variable
keep that state contained in the Install::Env module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
5cfca6d702 factor out disk & block device helpers helpers into own module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
7114269be3 install env: make cd info parse private, rework setup code style
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
136270bee3 env: save full test images string, not only boolean
we need to access the test images from other locations than
proxinstall, so make that state accessible.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
8357edf5d0 rename Proxmox::Install::Setup to Proxmox::Install::Env
slightly better fit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
a28c08e9fd factor out file helpers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
7fff67fe59 add basic gitignore file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
468900c7d4 cpuinfo check: display error if no info is found & rework code style
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
8e72619257 code style cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
89419e1aae proxinstall: rename link_points_to to is_same_file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
625e8f60ee factor out network parser and sys-info helpers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
d9ba239d39 factor out command execution helpers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
84dc3d6ffa factor out logging into own submodule
contain the log FD there centrally

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
f352163314 buildsys: depend on full known-to-git file list for installer sources
basically only used for change-tracking on what targets to rebuild,
so avoid the need to have the list here duplicated, most files known
to git are installer files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
fc2c6d3e63 buildsys: make country.dat generation atomic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
09362211c6 rework test mode handling
Make it clearer that we actually pass one, or a list of, test-images
as CLI option and move the is-test-mode state into the setup module
(not enough code/reason to make a separate "env" or so module) in
preparation of further splitting out code into separate modules where
we then need to have the info about test-mode state available there
too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
ab97da2c0d move ProxmoxInstallerSetup to Proxmox::Install::Setup
in preparation of splitting out more code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 09:36:58 +02:00
Thomas Lamprecht
7cf64825a1 main window: set background color for image banner
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 08:58:58 +02:00
Thomas Lamprecht
c5408d778d d/control: define compat level via build-depends
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-19 09:53:27 +02:00
Thomas Lamprecht
d0817324af checktime: output expected and wrong times for better UX
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-19 09:52:31 +02:00
Thomas Lamprecht
e74223a729 d/control: add explicit dependency to libgtk3-perl
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-19 09:52:31 +02:00
Christian Ebner
f428fe1f91 fix typo in error message
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2023-03-23 11:24:20 +01:00
Thomas Lamprecht
396a1ae665 bump version to 7.4-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-20 21:16:09 +01:00
Thomas Lamprecht
302d691015 d/control: depend on renamed and split-out proxmox-kernel-helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-20 21:15:23 +01:00
Thomas Lamprecht
5fd83fe2fd bump version to 7.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-16 12:41:05 +01:00
Thomas Lamprecht
6bbe42ef3c timezone: drop Etc/ prefix from UTC
this is a detail of the tz zoneinfo data/format, avoid to do the
replacement dance too.

IMO most users would be even rather confused by the Etc/ prefix.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-16 12:29:14 +01:00
Christoph Heiss
c5be833721 fix #4430: add UTC timezone as option to installer
Adds 'Etc/UTC' as option to the timezone selection, regardless of what
country is selected.

The 'Etc/' prefix needs to be stripped for the installation, as this
value is written to /etc/timezone. PVE/PMG/PBS already use 'UTC' without
the prefix, so avoid regressing them.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-03-16 12:26:04 +01:00
Thomas Lamprecht
2842fa1662 extract data: code style fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-16 12:25:09 +01:00
Thomas Lamprecht
41c7c87880 extract data: drop unused disksize variables in zfs/btrfs branches
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-16 12:24:51 +01:00
Thomas Lamprecht
fc92272c64 parition boot disk: use 1 GiB for ESP if root disk has 100+ GB space
to ensure we have enough space for more kernels and possible unified
kernel images (UKI) in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-16 12:21:42 +01:00
Thomas Lamprecht
8260f929b1 parition bootable disk: factor out ESP size into variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-15 14:14:59 +01:00