pve-installer.git
16 hours agobump version to 6.0-9 master
Thomas Lamprecht [Sat, 17 Aug 2019 08:31:51 +0000 (10:31 +0200)]
bump version to 6.0-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 days agofix #2313: load country.dat file with utf8 encoding
Dominik Csapak [Fri, 9 Aug 2019 10:47:55 +0000 (12:47 +0200)]
fix #2313: load country.dat file with utf8 encoding

this fixes the display and selection problem with countries that
have non-ascii symbols in them, like "Côte d'Ivoire"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 weeks agobump version to 6.0-8
Thomas Lamprecht [Thu, 25 Jul 2019 10:40:50 +0000 (12:40 +0200)]
bump version to 6.0-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 weeks agoefiboot: remove redundant call to zz-pve-efiboot
Fabian Grünbichler [Tue, 23 Jul 2019 12:52:47 +0000 (14:52 +0200)]
efiboot: remove redundant call to zz-pve-efiboot

this is already done by 'pve-efiboot-tool init'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 weeks agohandle bootloader installation errors gracefully
Fabian Grünbichler [Tue, 23 Jul 2019 12:52:46 +0000 (14:52 +0200)]
handle bootloader installation errors gracefully

by collecting them, but proceeding with the rest of the installation. it
is possible that only either legacy or EFI boot fails, and even if both
do, manually fixing the bootloader setup by booting a live CD is very
often possible.

still display the error screen at the end if bootloader setup was not
successful, so that expectations are not set too high..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 weeks agosuccess: show real final IP addr with port
Thomas Lamprecht [Tue, 16 Jul 2019 13:06:24 +0000 (15:06 +0200)]
success: show real final IP addr with port

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 weeks agobump version to 6.0-5
Thomas Lamprecht [Thu, 11 Jul 2019 17:22:56 +0000 (19:22 +0200)]
bump version to 6.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 weeks agouse pve-efiboot-tool for systemd boot ESP preparation
Thomas Lamprecht [Wed, 10 Jul 2019 21:35:22 +0000 (23:35 +0200)]
use pve-efiboot-tool for systemd boot ESP preparation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 weeks agoprompt user if a vgrename is OK for exisiting 'pve'/'pmg' VGs
Thomas Lamprecht [Tue, 9 Jul 2019 19:52:37 +0000 (21:52 +0200)]
prompt user if a vgrename is OK for exisiting 'pve'/'pmg' VGs

If one has a 'pve' VG on a disks not selected as install target
(e.g., on re-installation to different disk or if putting a used disk
into another server where PVE was installed on) the vgcreate call
errored out, as for creation the VG names must be unique.

Cope with that by asking the users if a rename to a
'<vgname>-OLD-<short-uid>' name is OK in this case. It ensures that
no data is lost and that we can safely continue with the
installation. The admin can then later on wipe the renamed VG if it
was really decommissioned or save data from it (or actually use it)

This can cope (tested) with:
* a single 'pve' VG on another device
* a single 'pve' VG spanning multiple devices
* multiple 'pve' VGs spanning different sets of devices

This is achieved by using the VG UUID for rename, and by recording
all PVs with said UUID as index.

Note, while this commit message talks mostly about 'pve' VG the patch
itself is actually agnostic of the specific name, works for 'pmg' and
possible (future) other VG names too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 weeks agocopy /etc/hostid from installer root to target
Stoiko Ivanov [Tue, 9 Jul 2019 16:09:19 +0000 (18:09 +0200)]
copy /etc/hostid from installer root to target

/etc/hostid is used by ZFS (spl.ko) to determine which host last imported a
pool creating and importing a pool with one hostid during install and booting
with a different one (or none) leads to the system refusing to import the pool
see spl-module-parameters(5) and zpool(8).

by copying the /etc/hostid from the installer into the target system we ensure
that it stays consistent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 weeks agofix #1603: create a new and unique machine-id
Stoiko Ivanov [Tue, 9 Jul 2019 16:09:18 +0000 (18:09 +0200)]
fix #1603: create a new and unique machine-id

see machine-id(5). The machine-id serves as a partial replacement to the hostid
(gethostid(3)) used by systemd and should be unique.

By generating a new one with `systemd-id128 new` (see machine-id(5),
sd-id128(3)) after the installation the newly installed system gets a unique
one.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 weeks agoalso umount efivars and minor improvements
Thomas Lamprecht [Mon, 8 Jul 2019 16:03:25 +0000 (18:03 +0200)]
also umount efivars and minor improvements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 weeks agomount efivarfs to ensure we can read bigger variables
Thomas Lamprecht [Mon, 8 Jul 2019 14:13:23 +0000 (16:13 +0200)]
mount efivarfs to ensure we can read bigger variables

In short, EFI variables can get quite big, and the old sysfs
interface was made for when they couldn't. A few firmwares out there
have such big variables, and if those are accessed through the sysfs
backed interface one gets a "Input/Output Error". 'grub-install'
chokes on that error when it iterates over all variables to do it's
stuff, and thus fails our installation. When we mount the efivarfs,
which does not has this limitations, one can read all variables just
fine - at least as long as the NVRAM backing them is not broken.

from Linux Kernel Documentation/filesystems/efivarfs.txt:
> The efivarfs filesystem was created to address the shortcomings of
> using entries in sysfs to maintain EFI variables. The old sysfs EFI
> variables code only supported variables of up to 1024 bytes. This
> limitation existed in version 0.99 of the EFI specification, but was
> removed before any full releases. Since variables can now be larger
> than a single page, sysfs isn't the best interface for this.
> Variables can be created, deleted and modified with the efivarfs
> filesystem.

Also mount it in the installer environment for debugging purpose.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agounderline that we detected less than 1024 MB of *useable* memory
Thomas Lamprecht [Fri, 5 Jul 2019 13:43:02 +0000 (15:43 +0200)]
underline that we detected less than 1024 MB of *useable* memory

firmwar, kernel, and some PCI(e) devices can use some memory, which
then is not available for userspace, thus the total memory installed
for this server normally differs at least about 50 MB from the
useable one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agohd_list: skip all devices with iso9660 as FS
Thomas Lamprecht [Fri, 5 Jul 2019 13:21:10 +0000 (15:21 +0200)]
hd_list: skip all devices with iso9660 as FS

This ensures that when booting from a USB stick, or similar device,
we do not show that device in the "Target Harddisk" selector.

While there may be some constructed cases where this actually worked
and was wanted, e.g., one created a partition on the end of a USB
storage device, put the ISO on that and used the beginning of that
device as target, I'd say that even if that worked with luck, it's
better not actively not support it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agobump version to 6.0-4
Thomas Lamprecht [Thu, 4 Jul 2019 16:10:36 +0000 (18:10 +0200)]
bump version to 6.0-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agosummary: s/drive/drive(s)/
Thomas Lamprecht [Thu, 4 Jul 2019 16:12:06 +0000 (18:12 +0200)]
summary: s/drive/drive(s)/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agoadd $product_fullname hash and use it
Thomas Lamprecht [Wed, 3 Jul 2019 08:21:49 +0000 (10:21 +0200)]
add $product_fullname hash and use it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agofollowup: refword, coding style and do not die
Thomas Lamprecht [Wed, 3 Jul 2019 05:32:16 +0000 (07:32 +0200)]
followup: refword, coding style and do not die

If a user really want's to try it, why not.
Also, no point in dividing by 1024 if we have a less-than operator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agoabort installation if memory is less than 1GB
Oguz Bektas [Tue, 2 Jul 2019 13:17:32 +0000 (15:17 +0200)]
abort installation if memory is less than 1GB

show a message on screen about memory requirement, then die and abort
the installation. (Note: followup removes the die again - Thomas)

The "magical" limit seems around 850 - 900 MiB memory needed, it's
a bit strange, as we do not need that much, proxinstall + webkit +
base system are around 300 MiB, the rest is page cache, but it seems
that the memory pressure gets to big.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agofix typo: s/virtualisation/virtualization/
Thomas Lamprecht [Wed, 3 Jul 2019 05:31:31 +0000 (07:31 +0200)]
fix typo: s/virtualisation/virtualization/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agouse by-id diskpath for zpool create
Stoiko Ivanov [Tue, 2 Jul 2019 14:44:32 +0000 (16:44 +0200)]
use by-id diskpath for zpool create

With the recent fixes to the installers initial /dev creation, the installer
and the kernel should now have the same view on the created devices and links

6 weeks agoclear zpool labels on selected disks' partitions
Stoiko Ivanov [Tue, 2 Jul 2019 14:44:31 +0000 (16:44 +0200)]
clear zpool labels on selected disks' partitions

along with `pvremove -ff` and writing zeroes to the first 16M of all
partitions, which belong to disks selected in the installer run `zpool
labelclear`.

This prevents a failure to boot after installation, if the disks were
previously also used as a zpool called rpool, but in a different configuration
(e.g. installing a raidzX first and then changing to raid10).

6 weeks agofollowup: reword summary sentence a bit
Thomas Lamprecht [Tue, 2 Jul 2019 12:15:23 +0000 (14:15 +0200)]
followup: reword summary sentence a bit

change the really short sentence to something with more "reading
flow"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agoalign lines in summary screen
Oguz Bektas [Tue, 2 Jul 2019 10:03:26 +0000 (12:03 +0200)]
align lines in summary screen

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
6 weeks agofollowup: only do zz-pve-efiboot if ZFS and EFI is used, for now
Thomas Lamprecht [Mon, 1 Jul 2019 20:36:59 +0000 (22:36 +0200)]
followup: only do zz-pve-efiboot if ZFS and EFI is used, for now

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agoupdate systemd-boot config after initializing esps
Stoiko Ivanov [Mon, 1 Jul 2019 20:16:22 +0000 (22:16 +0200)]
update systemd-boot config after initializing esps

run the kernel-postinst hook once (like we do for update-grub) instead
of once per ESP. This fixes an error (the hook does not write entries for
mounted partitions), and save quite a bit of (un)mounting and copying in case
of multiple ESPs

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
7 weeks agobump version to 6.0-3
Thomas Lamprecht [Fri, 28 Jun 2019 12:03:28 +0000 (14:03 +0200)]
bump version to 6.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agorefactor out prepare_grub_efi_boot_esp code
Thomas Lamprecht [Fri, 28 Jun 2019 11:02:27 +0000 (13:02 +0200)]
refactor out prepare_grub_efi_boot_esp code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agominor coding style cleanups
Thomas Lamprecht [Fri, 28 Jun 2019 11:02:08 +0000 (13:02 +0200)]
minor coding style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agodepreacate grub_platform variable, replaced by $boot_type
Thomas Lamprecht [Fri, 28 Jun 2019 11:01:26 +0000 (13:01 +0200)]
depreacate grub_platform variable, replaced by $boot_type

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agoadd support for ZFS on EFI
Stoiko Ivanov [Thu, 27 Jun 2019 18:27:59 +0000 (20:27 +0200)]
add support for ZFS on EFI

use systemd-boot in case of ZFS on EFI and prepare the ESPs of all bootable
devices by installing systemd-boot to them

7 weeks agobump version to 6.0-2
Thomas Lamprecht [Tue, 25 Jun 2019 08:28:25 +0000 (10:28 +0200)]
bump version to 6.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 weeks agoHD options panel: add seprator before OK button
Thomas Lamprecht [Wed, 19 Jun 2019 08:09:17 +0000 (10:09 +0200)]
HD options panel: add seprator before OK button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 weeks agoZFS: add note regarding HW raid controllers
Thomas Lamprecht [Wed, 19 Jun 2019 08:07:46 +0000 (10:07 +0200)]
ZFS: add note regarding HW raid controllers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agocreate_ipconf_view: if undefined variable in string cmp warning
Thomas Lamprecht [Fri, 7 Jun 2019 18:53:52 +0000 (20:53 +0200)]
create_ipconf_view: if undefined variable in string cmp warning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobuildsys: switch upload dist over to buster
Thomas Lamprecht [Wed, 22 May 2019 08:21:49 +0000 (10:21 +0200)]
buildsys: switch upload dist over to buster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobump version to 6.0-1
Thomas Lamprecht [Wed, 22 May 2019 08:03:21 +0000 (10:03 +0200)]
bump version to 6.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate banners
Thomas Lamprecht [Wed, 22 May 2019 08:02:55 +0000 (10:02 +0200)]
update banners

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agomount /run as tmpfs in chroot and bindmount to target root
Thomas Lamprecht [Wed, 22 May 2019 08:11:55 +0000 (10:11 +0200)]
mount /run as tmpfs in chroot and bindmount to target root

ensures things like LVM can work fine

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoproxinstall: remove outdated cleanup code
Thomas Lamprecht [Wed, 22 May 2019 07:30:51 +0000 (09:30 +0200)]
proxinstall: remove outdated cleanup code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agodrop also into debug shell before even starting to install
Thomas Lamprecht [Wed, 22 May 2019 07:27:52 +0000 (09:27 +0200)]
drop also into debug shell before even starting to install

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 22 May 2019 08:00:20 +0000 (10:00 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoignore non-existent eula file in test mode
Thomas Lamprecht [Wed, 22 May 2019 07:49:38 +0000 (09:49 +0200)]
ignore non-existent eula file in test mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobe compatible with new Gtk3 Webkit2
Thomas Lamprecht [Wed, 22 May 2019 07:24:05 +0000 (09:24 +0200)]
be compatible with new Gtk3 Webkit2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agod/control: pass ${perl:Depends} to Depends field
Thomas Lamprecht [Tue, 26 Mar 2019 14:38:29 +0000 (15:38 +0100)]
d/control: pass ${perl:Depends} to Depends field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agounconfigured: mount /dev/shm as tmpfs inside chroot
Thomas Lamprecht [Mon, 25 Mar 2019 20:18:23 +0000 (21:18 +0100)]
unconfigured: mount /dev/shm as tmpfs inside chroot

as preparation for GKT3 WebKit2 perl bindings, which wants to make a
shared memory file there, but fails and hangs the installer as
/dev/shm didn't exists in the chroot environment.

Doesn't hurt to just create it now already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agotell udev to ignore being in a chroot
Thomas Lamprecht [Mon, 25 Mar 2019 18:47:05 +0000 (19:47 +0100)]
tell udev to ignore being in a chroot

since udev/systemd v241 udev actively ignores requests if it detects
running in a chroot environment[0], as we do exactly this in our
setup process we need to tell udev that it is OK and we know what we
do, so set SYSTEMD_IGNORE_CHROOT=1 which makes the
"running_in_chroot" function lie[1].

[0]: https://github.com/systemd/systemd/commit/c494b739a47359ab2697482f52545e2a6d1c86ad
[1]: https://github.com/systemd/systemd/blob/v241/src/basic/virt.c#L607

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agobump version 5.0-26
Thomas Lamprecht [Wed, 20 Mar 2019 13:43:40 +0000 (14:43 +0100)]
bump version 5.0-26

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agoipconf view: only (re)set fields if nic really changed
Thomas Lamprecht [Wed, 20 Mar 2019 13:38:04 +0000 (14:38 +0100)]
ipconf view: only (re)set fields if nic really changed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 5.0-25
Thomas Lamprecht [Thu, 14 Mar 2019 15:36:52 +0000 (16:36 +0100)]
bump version to 5.0-25

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agofixup comment indentation
Thomas Lamprecht [Thu, 7 Mar 2019 06:16:41 +0000 (07:16 +0100)]
fixup comment indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoAdd support for Citrix Hypervisor blockdev.
Wolfgang Link [Wed, 6 Mar 2019 14:52:58 +0000 (15:52 +0100)]
Add support for Citrix Hypervisor blockdev.

Citrix Hypervisor use as blockdev path /dev/xvd<[a-z]><\d>
It makes sense for Proxmox Mail Gateway to run on Citrix Hypervisor.

Citrix Hypervisor recent XenServer.

6 months agos/$i/$a/
Thomas Lamprecht [Fri, 25 Jan 2019 15:28:27 +0000 (16:28 +0100)]
s/$i/$a/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agofixup-follow-up
Thomas Lamprecht [Fri, 25 Jan 2019 15:26:18 +0000 (16:26 +0100)]
fixup-follow-up

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agofollowup: really remember last HD selected
Thomas Lamprecht [Fri, 25 Jan 2019 15:24:15 +0000 (16:24 +0100)]
followup: really remember last HD selected

This was done correctly earlier, but the remembering part disappeared
on rebase, so followup, but do not save it in config_options.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agodon't show hd select combobox after raid is chosen
Oguz Bektas [Fri, 25 Jan 2019 15:14:02 +0000 (16:14 +0100)]
don't show hd select combobox after raid is chosen

* we don't want the hd select combobox to show up when user goes back
after choosing raid during initial setup

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
6 months agoonly set target_hd if it's not defined already
Oguz Bektas [Fri, 25 Jan 2019 15:14:01 +0000 (16:14 +0100)]
only set target_hd if it's not defined already

* this avoids weird behaviour with the chosen disk when the user changes
the type of filesystem during installation

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
6 months agofix typo in variable name
Oguz Bektas [Fri, 25 Jan 2019 15:14:00 +0000 (16:14 +0100)]
fix typo in variable name

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
7 months agofixup: remove unused wrongly introduced variable
Thomas Lamprecht [Fri, 11 Jan 2019 17:54:12 +0000 (18:54 +0100)]
fixup: remove unused wrongly introduced variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoack template: s/Disk/Disk(s)/
Thomas Lamprecht [Fri, 11 Jan 2019 13:05:13 +0000 (14:05 +0100)]
ack template: s/Disk/Disk(s)/

As we show all selected disk in a ZFS/BTRFS raid mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocreate_hdsel_view: cleanup set_next
Thomas Lamprecht [Fri, 11 Jan 2019 12:59:38 +0000 (13:59 +0100)]
create_hdsel_view: cleanup set_next

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoshow multiple disks in ack screen when zfs is used
Thomas Lamprecht [Thu, 10 Jan 2019 17:09:04 +0000 (18:09 +0100)]
show multiple disks in ack screen when zfs is used

Tested-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodo not create resolvconf links
Thomas Lamprecht [Fri, 14 Dec 2018 15:13:12 +0000 (16:13 +0100)]
do not create resolvconf links

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoack screen: show real country name instead of 2 letter code
Thomas Lamprecht [Fri, 14 Dec 2018 10:25:37 +0000 (11:25 +0100)]
ack screen: show real country name instead of 2 letter code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agominor style fixes
Oguz Bektas [Fri, 14 Dec 2018 09:42:56 +0000 (10:42 +0100)]
minor style fixes

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agohide previous button when starting installation
Thomas Lamprecht [Thu, 13 Dec 2018 14:56:25 +0000 (15:56 +0100)]
hide previous button when starting installation

makes no sense to go back from then, its just a special case which
would make things more complex and error prone.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agouse a more telling variable name for previous button
Thomas Lamprecht [Thu, 13 Dec 2018 14:55:38 +0000 (15:55 +0100)]
use a more telling variable name for previous button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoadd ability to test multiple disks
Thomas Lamprecht [Thu, 13 Dec 2018 10:13:33 +0000 (11:13 +0100)]
add ability to test multiple disks

to allow easier testing of ZFS modes requiring more than one disk.
Also add a target which defaults to 4 disks.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobuildsys: do not copy test disk images over to build dir
Thomas Lamprecht [Thu, 13 Dec 2018 10:13:32 +0000 (11:13 +0100)]
buildsys: do not copy test disk images over to build dir

this is unecessary and rsycn does no sparse copy if the --sparse
option is not passed.
As I want to introduce easier testing with multiple disks this helps
alot in reducing test setup and package build time.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoremember network settings for previous button
Thomas Lamprecht [Tue, 11 Dec 2018 15:50:37 +0000 (16:50 +0100)]
remember network settings for previous button

to allow going back without loosing information remeber the
information in the new $config hash

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoack screen: show which FS is going to be used
Thomas Lamprecht [Tue, 11 Dec 2018 15:50:03 +0000 (16:50 +0100)]
ack screen: show which FS is going to be used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agominor ack_template fixups
Thomas Lamprecht [Tue, 11 Dec 2018 15:49:27 +0000 (16:49 +0100)]
minor ack_template fixups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agofixup global config: do not differ between steps
Thomas Lamprecht [Tue, 11 Dec 2018 15:47:35 +0000 (16:47 +0100)]
fixup global config: do not differ between steps

This is the config from the whole installer, this should not be step
dependent, adds just and unecessarry and possible confusing level of
indirection.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoimplemented acknowledgement screen
Oguz Bektas [Tue, 11 Dec 2018 10:36:46 +0000 (11:36 +0100)]
implemented acknowledgement screen

this implements an acknowledgement screen as the last step, which
shows the user what they chose during the previous steps.

the html files have been modified according to the new installation
steps as well.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agoimplement previous button
Oguz Bektas [Tue, 11 Dec 2018 09:02:22 +0000 (10:02 +0100)]
implement previous button

this implements a previous button to the installer, along with some
structural changes to allow the installer to be more modular in the
future (such as a step list and a global config hash)

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agochange http links to https, clean whitespace
Oguz Bektas [Mon, 10 Dec 2018 08:30:32 +0000 (09:30 +0100)]
change http links to https, clean whitespace

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agoFix #2009: Recreate hdsize_adj with new hdsize
Stoiko Ivanov [Fri, 7 Dec 2018 11:35:31 +0000 (12:35 +0100)]
Fix #2009: Recreate hdsize_adj with new hdsize

Creating $hdsize_size_adjustment once with a passed hdsize, breaks changing
the disk to a smaller/larger one, since the installer is stuck with the limits
set with the initial disk.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoupdate version to 5.0-24
Thomas Lamprecht [Fri, 30 Nov 2018 15:11:22 +0000 (16:11 +0100)]
update version to 5.0-24

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agominor instruction change in html
Oguz Bektas [Wed, 28 Nov 2018 12:17:13 +0000 (13:17 +0100)]
minor instruction change in html

* made Install bold
* rephrased
* removed trailing whitespace

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agochange last button to 'Install'
Oguz Bektas [Wed, 28 Nov 2018 11:28:51 +0000 (12:28 +0100)]
change last button to 'Install'

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
8 months agofixup: readd unnecessarily remove line
Thomas Lamprecht [Wed, 28 Nov 2018 12:11:15 +0000 (13:11 +0100)]
fixup: readd unnecessarily remove line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoReset adjustment for spinbutton_hdsize
Stoiko Ivanov [Wed, 28 Nov 2018 11:40:57 +0000 (12:40 +0100)]
Reset adjustment for spinbutton_hdsize

After setting the input buffer for the spinbutton the default value
wasn't displayed anymore, resulting in odd behaviour when clicking in the field
w/o entering/changing a value.

Setting the adjustment again, sets the default value as before

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoFix typo in get_hdsize_spinbtn errormessage
Stoiko Ivanov [Wed, 28 Nov 2018 11:40:56 +0000 (12:40 +0100)]
Fix typo in get_hdsize_spinbtn errormessage

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agobump version to 5.0-23
Thomas Lamprecht [Fri, 23 Nov 2018 08:50:10 +0000 (09:50 +0100)]
bump version to 5.0-23

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agohdsize spinbutton: do not use our but a singleton closure
Thomas Lamprecht [Fri, 23 Nov 2018 11:20:50 +0000 (12:20 +0100)]
hdsize spinbutton: do not use our but a singleton closure

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobuildsys: use truncate to create test.img
Stoiko Ivanov [Thu, 22 Nov 2018 17:27:03 +0000 (18:27 +0100)]
buildsys: use truncate to create test.img

saves time during creation and subsequent rsync

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoDo not create a swap zvol
Stoiko Ivanov [Thu, 22 Nov 2018 17:27:02 +0000 (18:27 +0100)]
Do not create a swap zvol

Using zvols as swap devices does create deadlocks for users, as of zfs 0.7.9.
As the discussion of the issue [0] shows, fixing this is involved, and probably
won't be happening anytime soon (before zfs 0.8).

Not creating swap as a zvol seems like the better default setting for now.

Users needing swap can either leave unpartitioned space, by setting minfree,
or create the zvol quite easily after installation

[0] https://github.com/zfsonlinux/zfs/issues/7734

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoAdd hdsize spinbutton to ZFS grid
Stoiko Ivanov [Thu, 22 Nov 2018 17:27:01 +0000 (18:27 +0100)]
Add hdsize spinbutton to ZFS grid

by creating a shared entrybuffer with the hdsize widget in the regular
partitioning menu.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoFix typo in error message.
Stoiko Ivanov [Thu, 22 Nov 2018 17:27:00 +0000 (18:27 +0100)]
Fix typo in error message.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoRefactor $maxhdsize computation
Stoiko Ivanov [Thu, 22 Nov 2018 17:26:59 +0000 (18:26 +0100)]
Refactor $maxhdsize computation

Pass $config_options->{hdsize} to partition_bootable_disk, where needed,
and do the unitconversion in partition_bootable_disk.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoRemove partition_bootable_zfs_disk
Stoiko Ivanov [Thu, 22 Nov 2018 17:26:58 +0000 (18:26 +0100)]
Remove partition_bootable_zfs_disk

As it is not used anymore

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoUnify and adapt disk partitioning
Stoiko Ivanov [Thu, 22 Nov 2018 17:26:57 +0000 (18:26 +0100)]
Unify and adapt disk partitioning

Change partition_bootable_disk:
* Increase the efi-esp partitions' size to 512M (from 256M)
* Create the bios_boot partition in the first MB (sectors 34:2047)
* Split the sgdisk invocation into 2, to get 1M alignment for efi and os
  partitions

Changes are inspired by the wiki-entries by zol-upstream [0].

Use partition_bootable_disk also for bootable ZFS disks.
This provides users with the opportunity to leave unpartitioned space at
the end of the disk (by setting the hdsize parameter) for use outside of ZFS
(e.g. to create a dedicated swap partition).

[0] https://github.com/zfsonlinux/zfs/wiki/Debian-Stretch-Root-on-ZFS

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
10 months agoFix #1527: Use 'iso-codes' package country naming
Rhonda D'Vine [Mon, 17 Sep 2018 08:00:17 +0000 (10:00 +0200)]
Fix #1527: Use 'iso-codes' package country naming

The iso 3166-1 information in the iso-codes package seems to be more
up to par than the one that was used from tzdata.  Also remove
obsolete comments.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
11 months agoUse https:// for Homepage directly
Rhonda D'Vine [Wed, 12 Sep 2018 12:52:21 +0000 (14:52 +0200)]
Use https:// for Homepage directly

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
11 months agoAdd libpve-common-perl to Build-Depends
Rhonda D'Vine [Wed, 12 Sep 2018 12:52:20 +0000 (14:52 +0200)]
Add libpve-common-perl to Build-Depends

This one was missing.  Formating got adjusted too.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
12 months agoremove undocumented/unused pvelocalhost
David Limbeck [Tue, 14 Aug 2018 10:19:10 +0000 (12:19 +0200)]
remove undocumented/unused pvelocalhost

12 months agofix #1853: spelling errors
David Limbeck [Mon, 6 Aug 2018 11:12:12 +0000 (13:12 +0200)]
fix #1853: spelling errors

13 months agoAllow more than 26 SCSI disk devices.
Wolfgang Link [Mon, 2 Jul 2018 10:05:46 +0000 (12:05 +0200)]
Allow more than 26 SCSI disk devices.

Some customers have more than 26 devices,
for example, if they use multipath on a DAS box.

In the Linux Documentation admin-guide/devices.txt
is written 256 SCSI disk devices are possible.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
13 months agofix #1817: spelling errors
Wolfgang Bumiller [Wed, 20 Jun 2018 07:56:10 +0000 (09:56 +0200)]
fix #1817: spelling errors

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>