From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id CAD3860424 for ; Tue, 1 Feb 2022 23:04:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C1AB952BB for ; Tue, 1 Feb 2022 23:03:48 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 0453E5277 for ; Tue, 1 Feb 2022 23:03:46 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id C327146184 for ; Tue, 1 Feb 2022 23:03:46 +0100 (CET) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Tue, 1 Feb 2022 23:03:26 +0100 Message-Id: <20220201220331.3491615-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.255 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [RFC pve-kernel-meta 0/5] unify boot-mode config X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2022 22:04:18 -0000 This patchset is based on top of the pin/unpin/next-boot series (in it's v1) It contains changes I would consider breaking (in the sense that as a user I would expect to read about them in some Upgrade-notes, e.g. for a minor release) The changes should make it possible to boot a system irrespective of the current boot-mode (UEFI/legacy) in the bios. Users should be able to change their boot-mode in the bios, and the system should come up cleanly (and with the same kernel-version as with the other boot-mode) (currently changing boot-modes with p-b-t requrires booting from a live-CD) patch 3 drops systemd-boot and uses grub for both boot-modes, hopefully unifying the boot-experience and causing less confusion (currently I suggest to look at the screen while booting to find out which boot-loader is used) (Sadly systemd-boot (which I would prefer, justifiably) won't get support for legacy boot) * patch 1/5 renames a config-file (forgotten during the pve-efiboot->proxmox-boot rename) * sending as RFC - since it's really just and idea (and I'm not sure it won't cause even more confusion/breakage in practice) * very roughly tested on 2 VMs (manually reformatting the ESP to clean out systemd-boot) - both booted fine when changing their BIOS mode as is it's definitely missing: * a plan for transitioning current systems * cleanup of the code (the changes are minimal for a POC) * updated documentation * quite a bit more testing (especially on real hardware) Stoiko Ivanov (5): rename pve-efiboot-manual-kernels to proxmox-boot-manual-kernels proxmox-boot: add reinit subcommand proxmox-boot: keep EFI and legacy bootloaders in sync proxmox-boot: use grub for UEFI boot proxmox-boot: install grub in esp/EFI/BOOT/BOOTX64.EFI bin/grub-install-wrapper | 19 +------- bin/proxmox-boot-tool | 68 +++++++++++++++++++--------- debian/pve-kernel-helper.postinst | 4 ++ proxmox-boot/functions | 2 +- proxmox-boot/zz-proxmox-boot | 73 +++++-------------------------- 5 files changed, 64 insertions(+), 102 deletions(-) -- 2.30.2