Commit Graph

742 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
c2ca8ba8d6 minor cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-20 13:10:57 +02:00
Stoiko Ivanov
679c813c51 fix #3587: make hdsize configurable for btrfs setups
as described in the bug-entry it is still not possible to have a
swapfile on general btrfs setups (only on single disk (single data
profile - documented in [0,1], and my quick tests confirmed it).

Users who still need/want swap can now set a hdsize smaller than their
disk-size to keep a part unpartitioned for adding a swap-partition
after installation (like with ZFS).

I quickly considered sticking with a single 'advanced raid' tab and
adapting the visibility of the individual lines, but did not see an
elegant way (as far as this is possible with GUI code) of doing that.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-04-20 11:10:37 +02:00
Stoiko Ivanov
c07739f4e4 fix #3188: update hdsize spin-button on disk-selection change
the patch splits get_hdsize_spinbtn into a sub for generating the adjustment
gtk-element and one for the button itself and moves them above
create_raid_disk_raid (so that the adjustment sub can be called)

The adjustment gets it's data from the disks selected for installation
in the GUI, if a size is not provided.

Additionally the bogus 'zfs' argument to the create_raid_advanced_grid
was dropped.

Tested with a VM with 2x 100G disks, and one with 20G

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-04-20 11:09:34 +02:00
Stefan Reiter
5bb1722d09 zfs: allow RAID0 with different-sized disks
zfs_mirror_size_check is already called in get_zfs_raid_setup when
necessary, so don't call it unconditionally, as this will cause a
false-positive error on RAID0 devices (where size mismatches are fine).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-03-16 16:05:10 +01:00
Stoiko Ivanov
38aa09be47 fix #3905: allow lze/gzip/zstd compression for ZFS
Since all our zfs installs use proxmox-boot-tool the compatibility is
not an issue anymore

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-03-14 16:08:59 +01:00
Thomas Lamprecht
21b2e8eab5 code style
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-16 13:14:01 +01:00
Thomas Lamprecht
9bc6376d6a zfs create: default to relatime
like other FSs do already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-10 17:01:01 +01:00
Stoiko Ivanov
b04864ece2 get_device_desc: display disk size with 2 decimal places
instead of cutting it off by using int

especially relevant currently with 2 TB disks (people wonder why
it's displayed as 1 TiB - and would be fine with 1.95TiB).

Reported in our community forum:
https://forum.proxmox.com/threads/.103636/

Tested in a VM with a 100 GiB, 20GiB and 2TiB disk

Addtionally added the explicit return ath the end of the if branch,
instead of relying on the last statement not moving.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-01-26 11:59:53 +01:00
Stoiko Ivanov
c9b4369c4f proxmox-boot-preparation: add newline to /etc/kernel/cmdline
for better readability - and more robust handling in proxmox-boot-tool

quickly tested with the latest PMG-ISO and the debug mode.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-12-01 09:05:57 +01:00
Thomas Lamprecht
024449f104 init: do not sync on actual reboot
we actively synced two times already at this point, immediately after
the installer GUI exited and before starting to unmount stuff, so
reboot should not be required to sync and may even hang if trying to
do

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-10 14:11:35 +02:00