Commit Graph

1052 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
9fda294e9b zfs: fix wrong command reference in error message
zpool is used for the command, so it should also be referred to in
the error message.

Reported-by: Roland <devzero@web.de>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-02-14 10:18:45 +01:00
Thomas Lamprecht
ce8e7a4543 bump version to 7.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 07:25:45 +01:00
Thomas Lamprecht
cacd302ac0 lvm create: convert root size to integer for non-PVE path
just to be sure

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 07:19:16 +01:00
Thomas Lamprecht
d78e194743 lvm create: leave 4 MB space unallocated space for small disks too
Leave 4MiB of space left over to avoid aligning issues in some edge
cases

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 07:18:02 +01:00
Thomas Lamprecht
bd27b08593 compute swap size: align down to 4 MB
For one as this just avoids very oddly specific swap size values, and
more importantly, storage systems like LVM that need to align their
sizes to their internal extent size won't round up on odd numbers
anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 07:10:23 +01:00
Thomas Lamprecht
9797bf7e2b compute swap size: rename variable to clarify that its KB
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 07:09:02 +01:00
Thomas Lamprecht
3766f6ab22 bump version to 7.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 05:53:56 +01:00
Stoiko Ivanov
5a5e17427d create lvm: align LV size down to 4MB boundary for non-pve products
Following commit 1a5fa7b093 but for
the non-PVE code path we also need to align down to 4 MB with the
adapted auto-sizing, especially on smaller disks.

For PMG and PBS installations. Without it installation fails due to
one missing extent when creating the root LV. Minimally tested on a
VM of mine

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
 [ T: reworded commit message a bit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-29 05:51:34 +01:00
Thomas Lamprecht
7bf9ff28fc bump version to 7.2-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-19 10:54:23 +01:00
Thomas Lamprecht
1a5fa7b093 create lvm: improve rounding/alignment
stay in MB size range for longer to have some accuracy level we need
and mask the last 2 bits (= 4 MB) to align down to a level that
should not interfere with LVM anymore.

Otherwise, with $rest sizes that hit the second if branch < 48
regressed on LVM due to missing one extend of expected space.

Dominik verified this off-list to fix the case Stefan run into.

Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-19 10:54:20 +01:00
Thomas Lamprecht
f1bde6ef61 bump version to 7.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 10:45:11 +01:00
Thomas Lamprecht
9b97f6f8d8 fine tune swap selection for low memory/space setups
Switch also from tracking the calculation in GB to MB for higher
accuracy and more flexibility.

Note also that the hd_gb / 8 -> GB is the same as hd_gb * 128 -> MB,
so the auto-calculation did not change semantically.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 10:23:57 +01:00
Thomas Lamprecht
cb776c9a1a lvm create: rework auto-space distribution and improve for low size setups
Avoid a per-default extra free space block if the disk has less than
32 GB of total space.

Use the full rest size for root if it's below 12 GB, not much of a
point in setting up a data thin LVM for guests then.

Then also show a display message if no thin LVM is created to inform
the admin

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 09:39:19 +01:00
Thomas Lamprecht
76e9fa4062 lvm: use space between some calculations for readabillity
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 08:58:39 +01:00
Thomas Lamprecht
f0b70762b3 fix #4236: split disk space check into soft and hard limits
Make the 8 GB disk check a soft limit, as most products are still
installable with less space, even though it may need some special
options in the disk selection. Still notify the user with a prompt to
avoid an expected possible error seem like it was unexpected.

Keep 2 GB as hard limit for now, makes no sense to install on such
small devices, only pain.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-14 15:47:42 +02:00
Thomas Lamprecht
ebd6070d78 factor out displaying a prompt into helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-14 14:08:36 +02:00
Stoiko Ivanov
59cea7a71e zfs compression - fix wrongly added zle option
introduced in 38aa09be47 the newly added
compression mode lze - does not exist (zle does)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-05-04 11:12:43 +02:00
Thomas Lamprecht
3aa883ea74 bump version to 7.1-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-28 08:08:55 +02:00
Stoiko Ivanov
435522c9d1 remove /mnt/hostrun after install
else the directory lingers around on fresh systems.
follows 8d7ddbde84

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-04-26 08:24:02 +02:00
Thomas Lamprecht
421c170933 drop enabling timesyncd, wrong since chrony switch & unnecessary anyway
It should actually fail since the switch to chrony, but syscmd only
returns the exit code and we did not check it.

Shortly thought about checking for the existence of
"$targetdir/lib/systemd/system/chrony.service" and enable
chrony.service in that case, but that is unnecessary too, as we know
due to this bogus enable timesyncd which never stopped chrony to run
happily enabled after installation anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-25 17:49:36 +02:00
Thomas Lamprecht
3bcf46e2c1 disks: raid: avoid restting hdsize when reopening options
The"auto get lowest disk size from selected set" logic also reset it
to that if the previously chosen value was already lower on reopening
the disk dialogue.

That can be rather surprising for an user as the hdsize field is a
bit hidden in the advanced dialogue, so just reopening to ensure the
correct disks are selected may interfere with a previously lowered
hdsize.

Reported-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-25 17:41:24 +02:00
Thomas Lamprecht
5e29951202 bump version to 7.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 14:17:56 +02:00
Thomas Lamprecht
ebf1e983c6 hd size: avoid useles recreation of adjustment, reuse it
We can just get the configured adjustment and reset its value and
upper bound and not always do a more expensive recreation just for
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:28:00 +02:00
Thomas Lamprecht
329a65a5cb hd size: defuse, rework and comment hd size computation
we explicitly have an "Deselect All" Button if we got more than 4
disks, and if that's hit nothing is selected and we'd die with an
internal error in an normal, to be expected case; which must not
happen.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:12:31 +02:00
Thomas Lamprecht
e2b003a641 hd size: rename helper sub and avoid code ref
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:10:57 +02:00
Thomas Lamprecht
8d1ca71a14 raid hd opts: only connect combobox change handler once
we triggered the change even handler #disk-times, which is just
stupid as nothing in it depends from the inner loop, so move it out.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:10:57 +02:00
Thomas Lamprecht
4a96f4720c buildsys: multi disk check: add bigger fifth disk
to allow testing heterogeneous setups more easily.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:10:57 +02:00