[pve-devel] [PATCH proxmox-ve] add grub.d snippet

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jun 24 12:57:22 CEST 2021


to set distributor and disable os-prober. this allows us to drop grub
cfg handling from the installer except for the ZFS on / use case.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    adding the root=ZFS=.. boot=zfs to the kernel cmdline could also be done in the
    installer with a snippet - by referencing $GRUB_DEFAULT_CMDLINE, like
    kdump-tools does:
    
    GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT other-options.."

 debian/grub/proxmox-ve.cfg | 2 ++
 debian/proxmox-ve.install  | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 debian/grub/proxmox-ve.cfg

diff --git a/debian/grub/proxmox-ve.cfg b/debian/grub/proxmox-ve.cfg
new file mode 100644
index 0000000..d10da36
--- /dev/null
+++ b/debian/grub/proxmox-ve.cfg
@@ -0,0 +1,2 @@
+GRUB_DISTRIBUTOR="Proxmox VE"
+GRUB_DISABLE_OS_PROBER=true
diff --git a/debian/proxmox-ve.install b/debian/proxmox-ve.install
index 5780d2a..406f575 100644
--- a/debian/proxmox-ve.install
+++ b/debian/proxmox-ve.install
@@ -1,2 +1,3 @@
 debian/apthook/10pveapthook etc/apt/apt.conf.d/
 debian/apthook/pve-apt-hook usr/share/proxmox-ve/
+debian/grub/proxmox-ve.cfg etc/default/grub.d/
-- 
2.30.2






More information about the pve-devel mailing list