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
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).
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>
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>
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]: c494b739a4
[1]: https://github.com/systemd/systemd/blob/v241/src/basic/virt.c#L607
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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.
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>
* 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>
* 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>
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>
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>
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>