[pve-devel] [PATCH 0/3] add support for booting ZFS on EFI with systemd-boot

Stoiko Ivanov s.ivanov at proxmox.com
Thu Jun 27 20:27:56 CEST 2019


This patchsets adds support for running ZFS on EFI-booted systems to PVE.

systemd-boot gets installed and configured to the ESPs of all bootable disks
(all disks in a mirror and RAID-Z[123] config, the first 2 disks in a RAID10
config) on a ZFS-root  by pve-installer.

proxmox-ve ships 2 kernel-postinst hooks. One takes care of copying the new
kernels to all ESPs, and adding entries to systemd-boot's config. Additionally
it removes older kernels, since the ESPs are usually not too large in size
(pve-installer creates a parition of 512M on each bootable disk since 5.4)
The other hook creates an apt.conf.d snippet file to mark the recent and
wanted kernels as NeverAutoRemove.
This also enables us to drop the apt-conf which keeps _all_ kernels installed
from pve-manager.
The snippet generated by the kernel-hookscript is a different file than the one
shipped by pve-manager - this was done to not have to add a versioned dependency
(or a Replaces) to promox-ve/pve-manager - not too sure if it would be
better to keep the file with the same name for potential users who overwrite it
with their config mgmt systems.


proxmox-ve:
Stoiko Ivanov (1):
  add efiboot and autoremoval kernel postinst hooks

 debian/efiboot/functions        |  59 ++++++++++++
 debian/efiboot/pve-auto-removal |  39 ++++++++
 debian/efiboot/zz-pve-efiboot   | 157 ++++++++++++++++++++++++++++++++
 debian/proxmox-ve.install       |   3 +
 4 files changed, 258 insertions(+)
 create mode 100644 debian/efiboot/functions
 create mode 100755 debian/efiboot/pve-auto-removal
 create mode 100755 debian/efiboot/zz-pve-efiboot

pve-manager:
Stoiko Ivanov (1):
  config: remove pve-apt.conf

 configs/Makefile     | 1 -
 configs/pve-apt.conf | 7 -------
 2 files changed, 8 deletions(-)
 delete mode 100644 configs/pve-apt.conf

pve-installer:
Stoiko Ivanov (1):
  add support for ZFS on EFI

 proxinstall | 40 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 36 insertions(+), 4 deletions(-)

 proxinstall | 40 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 36 insertions(+), 4 deletions(-)

-- 
2.20.1





More information about the pve-devel mailing list