]> git.proxmox.com Git - pve-installer.git/log
pve-installer.git
17 months agobootloader installation: variable format clean-up
Thomas Lamprecht [Tue, 13 Jun 2023 11:43:05 +0000 (13:43 +0200)]
bootloader installation: variable format clean-up

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobootloader installation: fix wrong & misleading parenthesis indentation
Thomas Lamprecht [Tue, 13 Jun 2023 11:42:20 +0000 (13:42 +0200)]
bootloader installation: fix wrong & misleading parenthesis indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobump version to 8.0-2
Thomas Lamprecht [Fri, 9 Jun 2023 09:16:16 +0000 (11:16 +0200)]
bump version to 8.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofix call to logical_blocksize
Thomas Lamprecht [Fri, 9 Jun 2023 09:16:04 +0000 (11:16 +0200)]
fix call to logical_blocksize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofixup released distro
Thomas Lamprecht [Fri, 9 Jun 2023 07:39:25 +0000 (09:39 +0200)]
fixup released distro

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobuildsys: derive upload dist automatically
Thomas Lamprecht [Fri, 9 Jun 2023 07:34:27 +0000 (09:34 +0200)]
buildsys: derive upload dist automatically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobump version to 8.0-1
Thomas Lamprecht [Fri, 9 Jun 2023 07:34:24 +0000 (09:34 +0200)]
bump version to 8.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agovisibility fixes for calling into sys/block helpers
Thomas Lamprecht [Fri, 9 Jun 2023 07:31:08 +0000 (09:31 +0200)]
visibility fixes for calling into sys/block helpers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agounconfigured: call setupcon
Thomas Lamprecht [Fri, 9 Jun 2023 06:40:23 +0000 (08:40 +0200)]
unconfigured: call setupcon

to ensure any changes made by the installer/iso environment get
applied

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoavoid global $cmap variable and refactor use sites
Thomas Lamprecht [Fri, 19 May 2023 07:47:19 +0000 (09:47 +0200)]
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>
17 months agocontain country, time zone and keymap parsing to env module
Thomas Lamprecht [Sat, 8 Apr 2023 15:56:48 +0000 (17:56 +0200)]
contain country, time zone and keymap parsing to env module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoenv: code/style cleanup cmap/locale info parser
Thomas Lamprecht [Sat, 8 Apr 2023 15:55:08 +0000 (17:55 +0200)]
env: code/style cleanup cmap/locale info parser

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agomove cmap/zone parsing to env module
Thomas Lamprecht [Sat, 8 Apr 2023 15:38:01 +0000 (17:38 +0200)]
move cmap/zone parsing to env module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agomove assembling base-directory locations into env
Thomas Lamprecht [Sat, 8 Apr 2023 15:22:25 +0000 (17:22 +0200)]
move assembling base-directory locations into env

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agocode/style cleanups
Thomas Lamprecht [Sat, 8 Apr 2023 15:12:11 +0000 (17:12 +0200)]
code/style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agotest: allow to pass CD builder directory via environment
Thomas Lamprecht [Sat, 8 Apr 2023 14:38:56 +0000 (16:38 +0200)]
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>
17 months agorestructure env hash
Thomas Lamprecht [Sat, 8 Apr 2023 13:49:52 +0000 (15:49 +0200)]
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>
17 months agocall Gtk3::init manually
Thomas Lamprecht [Sat, 8 Apr 2023 13:07:03 +0000 (15:07 +0200)]
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>
17 months agoclean up country map parser
Thomas Lamprecht [Sat, 8 Apr 2023 13:02:49 +0000 (15:02 +0200)]
clean up country map parser

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agomove global cached disk state into block module
Thomas Lamprecht [Thu, 6 Apr 2023 15:55:28 +0000 (17:55 +0200)]
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>
17 months agosys block: cleanup disk list a bit
Thomas Lamprecht [Thu, 6 Apr 2023 11:36:18 +0000 (13:36 +0200)]
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>
17 months agosys cmd: use croak instead of die for caller context
Thomas Lamprecht [Thu, 6 Apr 2023 05:20:28 +0000 (07:20 +0200)]
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>
17 months agoavoid second module wide test_images variable
Thomas Lamprecht [Thu, 6 Apr 2023 05:19:08 +0000 (07:19 +0200)]
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>
17 months agofactor out disk & block device helpers helpers into own module
Thomas Lamprecht [Wed, 5 Apr 2023 14:08:26 +0000 (16:08 +0200)]
factor out disk & block device helpers helpers into own module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoinstall env: make cd info parse private, rework setup code style
Thomas Lamprecht [Wed, 5 Apr 2023 08:06:51 +0000 (10:06 +0200)]
install env: make cd info parse private, rework setup code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoenv: save full test images string, not only boolean
Thomas Lamprecht [Wed, 5 Apr 2023 14:10:04 +0000 (16:10 +0200)]
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>
17 months agorename Proxmox::Install::Setup to Proxmox::Install::Env
Thomas Lamprecht [Wed, 5 Apr 2023 08:04:43 +0000 (10:04 +0200)]
rename Proxmox::Install::Setup to Proxmox::Install::Env

slightly better fit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofactor out file helpers
Thomas Lamprecht [Tue, 4 Apr 2023 14:29:18 +0000 (16:29 +0200)]
factor out file helpers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoadd basic gitignore file
Thomas Lamprecht [Mon, 3 Apr 2023 15:25:10 +0000 (17:25 +0200)]
add basic gitignore file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agocpuinfo check: display error if no info is found & rework code style
Thomas Lamprecht [Mon, 3 Apr 2023 15:18:14 +0000 (17:18 +0200)]
cpuinfo check: display error if no info is found & rework code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agocode style cleanups
Thomas Lamprecht [Mon, 3 Apr 2023 15:15:32 +0000 (17:15 +0200)]
code style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoproxinstall: rename link_points_to to is_same_file
Thomas Lamprecht [Mon, 3 Apr 2023 15:14:01 +0000 (17:14 +0200)]
proxinstall: rename link_points_to to is_same_file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofactor out network parser and sys-info helpers
Thomas Lamprecht [Mon, 3 Apr 2023 14:36:22 +0000 (16:36 +0200)]
factor out network parser and sys-info helpers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofactor out command execution helpers
Thomas Lamprecht [Mon, 3 Apr 2023 14:32:37 +0000 (16:32 +0200)]
factor out command execution helpers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofactor out logging into own submodule
Thomas Lamprecht [Sun, 2 Apr 2023 11:03:11 +0000 (13:03 +0200)]
factor out logging into own submodule

contain the log FD there centrally

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobuildsys: depend on full known-to-git file list for installer sources
Thomas Lamprecht [Tue, 4 Apr 2023 14:30:55 +0000 (16:30 +0200)]
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>
17 months agobuildsys: make country.dat generation atomic
Thomas Lamprecht [Tue, 4 Apr 2023 14:30:14 +0000 (16:30 +0200)]
buildsys: make country.dat generation atomic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agorework test mode handling
Thomas Lamprecht [Sun, 2 Apr 2023 10:04:01 +0000 (12:04 +0200)]
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>
17 months agomove ProxmoxInstallerSetup to Proxmox::Install::Setup
Thomas Lamprecht [Sun, 2 Apr 2023 09:20:43 +0000 (11:20 +0200)]
move ProxmoxInstallerSetup to Proxmox::Install::Setup

in preparation of splitting out more code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agomain window: set background color for image banner
Thomas Lamprecht [Wed, 7 Jun 2023 06:58:50 +0000 (08:58 +0200)]
main window: set background color for image banner

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agod/control: define compat level via build-depends
Thomas Lamprecht [Fri, 19 May 2023 07:53:27 +0000 (09:53 +0200)]
d/control: define compat level via build-depends

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agochecktime: output expected and wrong times for better UX
Thomas Lamprecht [Fri, 19 May 2023 07:49:54 +0000 (09:49 +0200)]
checktime: output expected and wrong times for better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agod/control: add explicit dependency to libgtk3-perl
Thomas Lamprecht [Mon, 3 Apr 2023 15:15:00 +0000 (17:15 +0200)]
d/control: add explicit dependency to libgtk3-perl

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agofix typo in error message
Christian Ebner [Thu, 23 Mar 2023 08:56:33 +0000 (09:56 +0100)]
fix typo in error message

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
20 months agobump version to 7.4-2
Thomas Lamprecht [Mon, 20 Mar 2023 20:16:09 +0000 (21:16 +0100)]
bump version to 7.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agod/control: depend on renamed and split-out proxmox-kernel-helper
Thomas Lamprecht [Mon, 20 Mar 2023 20:15:23 +0000 (21:15 +0100)]
d/control: depend on renamed and split-out proxmox-kernel-helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agobump version to 7.4-1
Thomas Lamprecht [Thu, 16 Mar 2023 11:41:05 +0000 (12:41 +0100)]
bump version to 7.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agotimezone: drop Etc/ prefix from UTC
Thomas Lamprecht [Thu, 16 Mar 2023 11:29:12 +0000 (12:29 +0100)]
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>
20 months agofix #4430: add UTC timezone as option to installer
Christoph Heiss [Thu, 16 Mar 2023 10:01:36 +0000 (11:01 +0100)]
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>
20 months agoextract data: code style fix
Thomas Lamprecht [Thu, 16 Mar 2023 11:25:09 +0000 (12:25 +0100)]
extract data: code style fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoextract data: drop unused disksize variables in zfs/btrfs branches
Thomas Lamprecht [Thu, 16 Mar 2023 11:24:39 +0000 (12:24 +0100)]
extract data: drop unused disksize variables in zfs/btrfs branches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoparition boot disk: use 1 GiB for ESP if root disk has 100+ GB space
Thomas Lamprecht [Thu, 16 Mar 2023 11:21:40 +0000 (12:21 +0100)]
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>
20 months agoparition bootable disk: factor out ESP size into variable
Thomas Lamprecht [Wed, 15 Mar 2023 13:14:59 +0000 (14:14 +0100)]
parition bootable disk: factor out ESP size into variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agozfs: fix wrong command reference in error message
Thomas Lamprecht [Tue, 14 Feb 2023 09:18:37 +0000 (10:18 +0100)]
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>
23 months agobump version to 7.3-1
Thomas Lamprecht [Tue, 29 Nov 2022 06:25:45 +0000 (07:25 +0100)]
bump version to 7.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agolvm create: convert root size to integer for non-PVE path
Thomas Lamprecht [Tue, 29 Nov 2022 06:19:14 +0000 (07:19 +0100)]
lvm create: convert root size to integer for non-PVE path

just to be sure

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agolvm create: leave 4 MB space unallocated space for small disks too
Thomas Lamprecht [Tue, 29 Nov 2022 06:15:11 +0000 (07:15 +0100)]
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>
23 months agocompute swap size: align down to 4 MB
Thomas Lamprecht [Tue, 29 Nov 2022 06:10:21 +0000 (07:10 +0100)]
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>
23 months agocompute swap size: rename variable to clarify that its KB
Thomas Lamprecht [Tue, 29 Nov 2022 06:09:02 +0000 (07:09 +0100)]
compute swap size: rename variable to clarify that its KB

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agobump version to 7.3-1
Thomas Lamprecht [Tue, 29 Nov 2022 04:53:56 +0000 (05:53 +0100)]
bump version to 7.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agocreate lvm: align LV size down to 4MB boundary for non-pve products
Stoiko Ivanov [Mon, 28 Nov 2022 20:41:10 +0000 (21:41 +0100)]
create lvm: align LV size down to 4MB boundary for non-pve products

Following commit 1a5fa7b0936381314f613e525255078093f7f258 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>
2 years agobump version to 7.2-3
Thomas Lamprecht [Fri, 18 Nov 2022 15:32:12 +0000 (16:32 +0100)]
bump version to 7.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocreate lvm: improve rounding/alignment
Thomas Lamprecht [Fri, 18 Nov 2022 15:29:17 +0000 (16:29 +0100)]
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>
2 years agobump version to 7.2-1
Thomas Lamprecht [Fri, 18 Nov 2022 09:45:11 +0000 (10:45 +0100)]
bump version to 7.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofine tune swap selection for low memory/space setups
Thomas Lamprecht [Fri, 18 Nov 2022 09:23:56 +0000 (10:23 +0100)]
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>
2 years agolvm create: rework auto-space distribution and improve for low size setups
Thomas Lamprecht [Fri, 18 Nov 2022 07:59:28 +0000 (08:59 +0100)]
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>
2 years agolvm: use space between some calculations for readabillity
Thomas Lamprecht [Fri, 18 Nov 2022 07:58:39 +0000 (08:58 +0100)]
lvm: use space between some calculations for readabillity

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #4236: split disk space check into soft and hard limits
Thomas Lamprecht [Wed, 14 Sep 2022 13:47:23 +0000 (15:47 +0200)]
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>
2 years agofactor out displaying a prompt into helper
Thomas Lamprecht [Wed, 14 Sep 2022 12:08:36 +0000 (14:08 +0200)]
factor out displaying a prompt into helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agozfs compression - fix wrongly added zle option
Stoiko Ivanov [Wed, 4 May 2022 09:08:42 +0000 (11:08 +0200)]
zfs compression - fix wrongly added zle option

introduced in 38aa09be4794307145a0acf37f66aa7e2fac7e62 the newly added
compression mode lze - does not exist (zle does)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agobump version to 7.1-2
Thomas Lamprecht [Thu, 28 Apr 2022 06:08:37 +0000 (08:08 +0200)]
bump version to 7.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoremove /mnt/hostrun after install
Stoiko Ivanov [Fri, 11 Mar 2022 19:05:47 +0000 (20:05 +0100)]
remove /mnt/hostrun after install

else the directory lingers around on fresh systems.
follows 8d7ddbde84b3ebde29108b2080977b03853b2b69

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agodrop enabling timesyncd, wrong since chrony switch & unnecessary anyway
Thomas Lamprecht [Mon, 25 Apr 2022 15:49:33 +0000 (17:49 +0200)]
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>
2 years agodisks: raid: avoid restting hdsize when reopening options
Thomas Lamprecht [Mon, 25 Apr 2022 15:41:21 +0000 (17:41 +0200)]
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>
2 years agobump version to 7.1-1
Thomas Lamprecht [Wed, 20 Apr 2022 12:17:56 +0000 (14:17 +0200)]
bump version to 7.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohd size: avoid useles recreation of adjustment, reuse it
Thomas Lamprecht [Wed, 20 Apr 2022 11:14:37 +0000 (13:14 +0200)]
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>
2 years agohd size: defuse, rework and comment hd size computation
Thomas Lamprecht [Wed, 20 Apr 2022 11:12:30 +0000 (13:12 +0200)]
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>
2 years agohd size: rename helper sub and avoid code ref
Thomas Lamprecht [Wed, 20 Apr 2022 11:10:36 +0000 (13:10 +0200)]
hd size: rename helper sub and avoid code ref

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoraid hd opts: only connect combobox change handler once
Thomas Lamprecht [Wed, 20 Apr 2022 11:00:11 +0000 (13:00 +0200)]
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>
2 years agobuildsys: multi disk check: add bigger fifth disk
Thomas Lamprecht [Wed, 20 Apr 2022 10:57:05 +0000 (12:57 +0200)]
buildsys: multi disk check: add bigger fifth disk

to allow testing heterogeneous setups more easily.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agominor cleanups
Thomas Lamprecht [Wed, 20 Apr 2022 10:56:36 +0000 (12:56 +0200)]
minor cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3587: make hdsize configurable for btrfs setups
Stoiko Ivanov [Tue, 19 Apr 2022 12:02:31 +0000 (14:02 +0200)]
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>
2 years agofix #3188: update hdsize spin-button on disk-selection change
Stoiko Ivanov [Tue, 19 Apr 2022 12:02:30 +0000 (14:02 +0200)]
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>
2 years agozfs: allow RAID0 with different-sized disks
Stefan Reiter [Thu, 24 Jun 2021 12:30:13 +0000 (14:30 +0200)]
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>
2 years agofix #3905: allow lze/gzip/zstd compression for ZFS
Stoiko Ivanov [Fri, 11 Mar 2022 16:04:20 +0000 (17:04 +0100)]
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>
2 years agocode style
Thomas Lamprecht [Wed, 16 Feb 2022 12:14:01 +0000 (13:14 +0100)]
code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agozfs create: default to relatime
Thomas Lamprecht [Thu, 10 Feb 2022 13:39:19 +0000 (14:39 +0100)]
zfs create: default to relatime

like other FSs do already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoget_device_desc: display disk size with 2 decimal places
Stoiko Ivanov [Tue, 25 Jan 2022 13:04:43 +0000 (14:04 +0100)]
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>
2 years agoproxmox-boot-preparation: add newline to /etc/kernel/cmdline
Stoiko Ivanov [Tue, 30 Nov 2021 17:52:52 +0000 (18:52 +0100)]
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>
3 years agoinit: do not sync on actual reboot
Thomas Lamprecht [Fri, 10 Sep 2021 12:11:29 +0000 (14:11 +0200)]
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>
3 years agoinit: add hint that GUI should start and where to find potential errors
Thomas Lamprecht [Fri, 10 Sep 2021 12:11:12 +0000 (14:11 +0200)]
init: add hint that GUI should start and where to find potential errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinit: add missing newline for chorny log message
Thomas Lamprecht [Fri, 10 Sep 2021 12:10:32 +0000 (14:10 +0200)]
init: add missing newline for chorny log message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-7
Thomas Lamprecht [Wed, 14 Jul 2021 10:16:30 +0000 (12:16 +0200)]
bump version to 7.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "bridged network: set bridge HW-address to port one"
Thomas Lamprecht [Wed, 14 Jul 2021 10:08:17 +0000 (12:08 +0200)]
Revert "bridged network: set bridge HW-address to port one"

This reverts commit eae6e7ef19130df7dc8186ef523425b9d43e6793.

It can be quite subtle on network or HW change, so avoid that - we
plan to set the ifupdown2 option for a static MAC from a bridge port
instead.

3 years agoavoid copying packages into ram, bind-mount into target chroot and extract directly
Thomas Lamprecht [Wed, 14 Jul 2021 10:07:59 +0000 (12:07 +0200)]
avoid copying packages into ram, bind-mount into target chroot and extract directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocode/indentation cleanup
Thomas Lamprecht [Wed, 14 Jul 2021 10:07:03 +0000 (12:07 +0200)]
code/indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: reboot cleaner, avoid sysrq if possible
Thomas Lamprecht [Wed, 14 Jul 2021 10:05:35 +0000 (12:05 +0200)]
unconfigured: reboot cleaner, avoid sysrq if possible

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-6
Thomas Lamprecht [Mon, 12 Jul 2021 11:21:12 +0000 (13:21 +0200)]
bump version to 7.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: explicitly unmount iso9660 only
Thomas Lamprecht [Mon, 12 Jul 2021 11:20:25 +0000 (13:20 +0200)]
unconfigured: explicitly unmount iso9660 only

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-5
Thomas Lamprecht [Mon, 12 Jul 2021 09:55:00 +0000 (11:55 +0200)]
bump version to 7.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>