]> git.proxmox.com Git - pve-installer.git/log
pve-installer.git
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 months 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>
18 months 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>
18 months 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>
18 months 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>
18 months 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>
18 months 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>
20 months 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>
20 months 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>
2 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>
2 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>
2 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>
2 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>
2 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.

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 years agounconfigured: only log about swap if actually deactivating
Thomas Lamprecht [Mon, 12 Jul 2021 09:52:45 +0000 (11:52 +0200)]
unconfigured: only log about swap if actually deactivating

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: do not unmount /dev to early
Thomas Lamprecht [Mon, 12 Jul 2021 09:51:05 +0000 (11:51 +0200)]
unconfigured: do not unmount /dev to early

matters now with unconfigured being the actual PID 1, earlier this
was handled by the initrd PID 1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: ifupdown is not used anymore, cope with that
Thomas Lamprecht [Mon, 12 Jul 2021 08:02:45 +0000 (10:02 +0200)]
unconfigured: ifupdown is not used anymore, cope with that

we already terminate everything nicely, so this should not matter..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobridged network: set bridge HW-address to port one
Thomas Lamprecht [Mon, 12 Jul 2021 06:54:52 +0000 (08:54 +0200)]
bridged network: set bridge HW-address to port one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobtrfs: fix casing for tech preview
Thomas Lamprecht [Tue, 6 Jul 2021 09:19:39 +0000 (11:19 +0200)]
btrfs: fix casing for tech preview

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agogrub: only set special config for ZFS
Fabian Grünbichler [Mon, 28 Jun 2021 13:10:41 +0000 (15:10 +0200)]
grub: only set special config for ZFS

and handle that one via a snippet instead of touching the main
'/etc/default/grub' config file.

distributor (and disabling os-prober for PVE) are already handled by the
product-specific meta packages via snippets - proxmox-ve was the last to
join this club in 7.0-2.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump version to 7.0-4
Thomas Lamprecht [Thu, 24 Jun 2021 09:04:34 +0000 (11:04 +0200)]
bump version to 7.0-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agonetwork: sync option names with pve-common
Fabian Grünbichler [Thu, 24 Jun 2021 07:29:36 +0000 (09:29 +0200)]
network: sync option names with pve-common

back in 2018, commit 1accc6da659d8a02dcf1c2a636749e6f48fb9c2d
"Inotify : write network config : use modern syntax for options"
changed pve-common's /etc/network/interfaces writer to prefer options
with '-' over those with '_'.

having the installer write the old variant makes any modification of the
vmbr0 interface via the API also change these three lines to the new
variant - so let's do it right from the start.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agolvcreate: pass --yes to ensure wipesignatures is answered with go-for-it
Thomas Lamprecht [Thu, 24 Jun 2021 09:00:30 +0000 (11:00 +0200)]
lvcreate: pass --yes to ensure wipesignatures is answered with go-for-it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoclean disk: sort blockdevs by length to clean depth-first
Thomas Lamprecht [Thu, 24 Jun 2021 08:59:56 +0000 (10:59 +0200)]
clean disk: sort blockdevs by length to clean depth-first

especially relevant for the wipefs call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agorun command: code cleanup, return pid from eval
Thomas Lamprecht [Thu, 24 Jun 2021 08:59:18 +0000 (10:59 +0200)]
run command: code cleanup, return pid from eval

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoset 'LVM_SUPPRESS_FD_WARNINGS' env to make lvm less noisy
Thomas Lamprecht [Thu, 24 Jun 2021 08:58:54 +0000 (10:58 +0200)]
set 'LVM_SUPPRESS_FD_WARNINGS' env to make lvm less noisy

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.0-3
Thomas Lamprecht [Wed, 23 Jun 2021 21:03:27 +0000 (23:03 +0200)]
bump version to 7.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve: enable BTRFS support on installation
Thomas Lamprecht [Wed, 23 Jun 2021 13:20:17 +0000 (15:20 +0200)]
pve: enable BTRFS support on installation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopid1: shutdown: send a more friendly TERM signal first
Thomas Lamprecht [Wed, 23 Jun 2021 12:42:35 +0000 (14:42 +0200)]
pid1: shutdown: send a more friendly TERM signal first

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agostorage/raid: adapt note depending if ZFS or BTRFS is selected
Thomas Lamprecht [Wed, 23 Jun 2021 12:40:59 +0000 (14:40 +0200)]
storage/raid: adapt note depending if ZFS or BTRFS is selected

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobuildsys: make package also depend on ProxmoxInstallerSetup module
Thomas Lamprecht [Wed, 23 Jun 2021 12:39:49 +0000 (14:39 +0200)]
buildsys: make package also depend on ProxmoxInstallerSetup module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix 'disable' flag on local storage when using btrfs
Wolfgang Bumiller [Wed, 23 Jun 2021 12:15:11 +0000 (14:15 +0200)]
fix 'disable' flag on local storage when using btrfs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobuildsys: fix upload targets package variable
Thomas Lamprecht [Tue, 15 Jun 2021 13:08:16 +0000 (15:08 +0200)]
buildsys: fix upload targets package variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.0-2
Thomas Lamprecht [Tue, 15 Jun 2021 13:07:07 +0000 (15:07 +0200)]
bump version to 7.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: install busybox applets
Thomas Lamprecht [Tue, 15 Jun 2021 13:03:09 +0000 (15:03 +0200)]
unconfigured: install busybox applets

We may be using a more minimal debootstrap nowadays, but busybox is
still available, so compensate that by telling it to install
symlinks in /bin and /sbin for those applets it knows and are not
already existing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: heuristically detect high-dpi and adapt font/GDK_SCALE
Thomas Lamprecht [Tue, 15 Jun 2021 12:56:26 +0000 (14:56 +0200)]
unconfigured: heuristically detect high-dpi and adapt font/GDK_SCALE

Use the biggest terminus font we can get our hands on, and use the
Uni2 variant, which seems like an OK trade-off (the installer is
rather ascii anyway).

The detection uses the console columns in such away that high-dpi
screen should be detected but just wide-formats (like 21:9) should
not. This is a bit brittle, but even miss-detecting it should still
allow using it (the installer is made for 1024x768, which when
doubled still fits on WQXGA (2560x1600) and mostly on 1440p too.

It could be more robust to depend on edid-decode, but as physical
dimensions are not required there, and even if specified often quite
off, it's not a sure thing either. So go for simple first.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: add some more newline to log messages
Thomas Lamprecht [Tue, 15 Jun 2021 12:55:23 +0000 (14:55 +0200)]
unconfigured: add some more newline to log messages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: allow very crude and manual wlan management through iwd
Thomas Lamprecht [Mon, 14 Jun 2021 13:55:51 +0000 (15:55 +0200)]
unconfigured: allow very crude and manual wlan management through iwd

can for now only work if booted via debug mode as one needs to
manually call iwctl in the debugshell, so only call it in the debug
case. This is currently more of a rough experimental way for the
brave and knowing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: set hostname before debug shell
Thomas Lamprecht [Mon, 14 Jun 2021 13:55:08 +0000 (15:55 +0200)]
unconfigured: set hostname before debug shell

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: reboot: explicitly unnmount /dev/pts /dev/shm too
Thomas Lamprecht [Mon, 14 Jun 2021 12:04:28 +0000 (14:04 +0200)]
unconfigured: reboot: explicitly unnmount /dev/pts /dev/shm too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: handle being the new PID 1
Thomas Lamprecht [Mon, 14 Jun 2021 12:03:22 +0000 (14:03 +0200)]
unconfigured: handle being the new PID 1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: adapt some log messages
Thomas Lamprecht [Mon, 14 Jun 2021 12:02:09 +0000 (14:02 +0200)]
unconfigured: adapt some log messages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: cmdline parse: override shellcheck and drop unused variable
Thomas Lamprecht [Mon, 14 Jun 2021 10:51:34 +0000 (12:51 +0200)]
unconfigured: cmdline parse: override shellcheck and drop unused variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: fix getting swap devices
Thomas Lamprecht [Mon, 14 Jun 2021 10:35:04 +0000 (12:35 +0200)]
unconfigured: fix getting swap devices

Previously we used a ugly hack to extract the device from the whole
line returned by passing it to bash's `set`, which assigns remaining
arguments it does not know about (or after "--") to $1, $2, etc.

This is ugly due to:
* not using "--", so it could break easily
* being quite subtle in general, e.g., shellcheck does not likes
  unquoted variable expansions, so one would add quotes around
  breaking the actual use case

Just use awk to do both the grep and extraction, which is much
clearer to do

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodisk preparation: more granular progress report for cleaning up disks
Thomas Lamprecht [Mon, 14 Jun 2021 10:04:50 +0000 (12:04 +0200)]
disk preparation: more granular progress report for cleaning up disks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoclean disk: pass all partitions to wipe2fs and simple zap partitions later
Thomas Lamprecht [Mon, 14 Jun 2021 09:55:11 +0000 (11:55 +0200)]
clean disk: pass all partitions to wipe2fs and simple zap partitions later

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agounconfigured: whitespace cleanups
Thomas Lamprecht [Fri, 11 Jun 2021 11:18:48 +0000 (13:18 +0200)]
unconfigured: whitespace cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agolvm: always tell lvm to wipe the signatures
Thomas Lamprecht [Fri, 11 Jun 2021 11:12:39 +0000 (13:12 +0200)]
lvm: always tell lvm to wipe the signatures

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-1
Thomas Lamprecht [Tue, 25 May 2021 10:27:19 +0000 (12:27 +0200)]
bump version to 7.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agooverride grub default config via installer
Thomas Lamprecht [Tue, 25 May 2021 17:51:03 +0000 (19:51 +0200)]
override grub default config via installer

We used to ship our own grub in the installer, originally due to ZFS
support, but we also used it to setup a slightly modified
`/etc/default/grub`. We do not need a self-build grub for technical
reasons like ZFS support anymore, so avoid the need to ship it and
move over deploying the config changes to the installer.

Just write out the whole config, much easier to see what's going on
compared to some `sed` calls.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agouse wipefs to clean the disks used for the root filesystem
Thomas Lamprecht [Tue, 25 May 2021 17:50:39 +0000 (19:50 +0200)]
use wipefs to clean the disks used for the root filesystem

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorestructure html in repo and installed package
Thomas Lamprecht [Tue, 25 May 2021 12:34:34 +0000 (14:34 +0200)]
restructure html in repo and installed package

placing the common stuff top-level and the per-product stuff one
directory-level down allows to access all used resources (css,
images) from a common base path without hacking to much around.

Per-product files are always preferred.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: better clean
Thomas Lamprecht [Tue, 25 May 2021 10:28:17 +0000 (12:28 +0200)]
buildsys: better clean

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowhitespace/code cleanups
Thomas Lamprecht [Tue, 25 May 2021 10:26:38 +0000 (12:26 +0200)]
whitespace/code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodebian: update comapt level to 12 and cleanup
Thomas Lamprecht [Tue, 25 May 2021 10:24:48 +0000 (12:24 +0200)]
debian: update comapt level to 12 and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agomerge installer into single package
Thomas Lamprecht [Tue, 25 May 2021 10:22:28 +0000 (12:22 +0200)]
merge installer into single package

Depends on the install env. having a cd-info file to parse the
product from, which we have since PVE 6.1 ISO release 2.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-2
Thomas Lamprecht [Mon, 26 Apr 2021 16:54:09 +0000 (18:54 +0200)]
bump version to 6.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoalways boot zfs with proxmox-boot-tool
Stoiko Ivanov [Fri, 23 Apr 2021 09:04:51 +0000 (11:04 +0200)]
always boot zfs with proxmox-boot-tool

proxmox-boot-tool now supports configuring grub to boot from the ESPs
the installer creates on all (bootable) disks - use this approach
for zfs installs.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agoget_device_desc: use correct size units and support TiB
Thomas Lamprecht [Thu, 22 Apr 2021 17:05:54 +0000 (19:05 +0200)]
get_device_desc: use correct size units and support TiB

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocode cleanup
Thomas Lamprecht [Thu, 22 Apr 2021 17:05:21 +0000 (19:05 +0200)]
code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozfs: assume that all devices are boot devices
Thomas Lamprecht [Thu, 22 Apr 2021 15:13:44 +0000 (17:13 +0200)]
zfs: assume that all devices are boot devices

the argument "but if someting in raid0 fails all is dead" is true but
misses the point completely, namely:
* firmware is weird and sometimes allows booting only from certain
  devices, which we cannot know here
* potentially only the boot partition could be corrupted/broken/...
  in which case another dev in the raid 0 could allow successful
  booting

In short, we can only win if we use all devices as boot devices, the
512 MiB lost in some devices are negligible, and they resulted in an
uneven storage space distribution.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-1
Thomas Lamprecht [Fri, 26 Mar 2021 18:47:22 +0000 (19:47 +0100)]
bump version to 6.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoterminated all started daemons in a generic way
Thomas Lamprecht [Fri, 26 Mar 2021 18:45:30 +0000 (19:45 +0100)]
terminated all started daemons in a generic way

Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-1
Thomas Lamprecht [Fri, 26 Mar 2021 15:02:15 +0000 (16:02 +0100)]
bump version to 6.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3165: start chrony after DHCP client for an opportunistic time-sync
Thomas Lamprecht [Fri, 26 Mar 2021 14:43:56 +0000 (15:43 +0100)]
fix #3165: start chrony after DHCP client for an opportunistic time-sync

We had reports about problems stemming from skewed clocks during
installation, especially if their time was in the future during
installation and on first real boot got synced up, certs may not be
valid yet, RRD may has written data before that correcting time-sync
went through and errors afterwards, once time jumped back, and lots
of other issues.

So, depend on the modern and nifty, but still small, NTP
implementation `chrony`. Start its daemon just after we asked for a
DHCP lease, as then it can directly try to sync with one of the
(Debian namespaced) NTP pools time server.

In the worst case (no network, no server available) we are as good as
now, but if chrony can sync the time we avoid lots of issues and
breakages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopve_ fix title in fist page html
Oguz Bektas [Wed, 10 Mar 2021 13:19:30 +0000 (14:19 +0100)]
pve_ fix title in fist page html

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3223: fix hardcoded port value in success page html
Oguz Bektas [Wed, 30 Dec 2020 08:42:16 +0000 (09:42 +0100)]
fix #3223: fix hardcoded port value in success page html

3 years agoinstaller: minor language fixup
Dylan Whyte [Fri, 11 Dec 2020 07:55:52 +0000 (08:55 +0100)]
installer: minor language fixup

just some nitpicky changes.

v2:
- remove tag files
@Thomas: Like you thought, they are autogenerated by some vim plugin.
They usually sit quitely in the untracked files, but this time, I guess
I somehow I managed to add them in without noticing.. Apologies!

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>