From f16b6067160bbf32bf050a56f0450487d65741f5 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 29 Oct 2021 17:16:56 +0200 Subject: [PATCH] stages/grub2.legacy: new stage for non-bls config Configure grub2 but instead of using the Bootloader Specification (BLS) it uses traditional menu entries for the individual boot entries. This is needed since RHEL7 does not have grub2 with BLS support. --- stages/org.osbuild.grub2.legacy | 542 ++++++++++++++++++++++++++++++++ 1 file changed, 542 insertions(+) create mode 100755 stages/org.osbuild.grub2.legacy diff --git a/stages/org.osbuild.grub2.legacy b/stages/org.osbuild.grub2.legacy new file mode 100755 index 00000000..a4b52313 --- /dev/null +++ b/stages/org.osbuild.grub2.legacy @@ -0,0 +1,542 @@ +#!/usr/bin/python3 +""" +Configure GRUB2 bootloader and set boot options (legacy, i.e. non-BLS) + +This stage creates traditional menu entries for systems that are not +capable of using the Booloader Specific (BLS). + +Sets the GRUB2 boot/root filesystem to `rootfs`. If a separated boot +partition is used it can be specified via `bootfs`. The file-systems +can be identified either via + - uuid (`{"uuid": ""}`) + - label (`{"label": "