From ae70f9c5f6175d73f6ad8363319b4f6c6f5f1905 Mon Sep 17 00:00:00 2001 From: Alan Baghumian Date: Mon, 6 Jan 2025 19:20:08 +0100 Subject: [PATCH] Updated RHEL family aarch64 preseed template (#289) Updated RHEL family aarch64 preseed template to address a potential grub> issue after the first boot post deployment. --- rhel10/README.md | 2 ++ rhel8/README.md | 2 ++ rhel9/README.md | 2 ++ rocky8/README.md | 2 ++ 4 files changed, 8 insertions(+) diff --git a/rhel10/README.md b/rhel10/README.md index 99d06a2..7d42927 100644 --- a/rhel10/README.md +++ b/rhel10/README.md @@ -101,6 +101,8 @@ extract_commands: late_commands: maas: [wget, '--no-proxy', '{{node_disable_pxe_url}}', '--post-data', '{{node_disable_pxe_data}}', '-O', '/dev/null'] + bootloader_01: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/shimaa64.efi", "/boot/efi/EFI/BOOT/bootaa64.efi"] + bootloader_02: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/grubaa64.efi", "/boot/efi/EFI/BOOT/"] ``` This file needs to be saved on Region Controllers under /var/snap/maas/current/preseeds/curtin_userdata_rhel_arm64_generic_rhel10 or /etc/maas/preseeds/curtin_userdata_rhel_arm64_generic_rhel10. The last portion of this file must match the image name uploaded in MAAS. diff --git a/rhel8/README.md b/rhel8/README.md index aa73f36..0b8a559 100644 --- a/rhel8/README.md +++ b/rhel8/README.md @@ -101,6 +101,8 @@ extract_commands: late_commands: maas: [wget, '--no-proxy', '{{node_disable_pxe_url}}', '--post-data', '{{node_disable_pxe_data}}', '-O', '/dev/null'] + bootloader_01: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/shimaa64.efi", "/boot/efi/EFI/BOOT/bootaa64.efi"] + bootloader_02: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/grubaa64.efi", "/boot/efi/EFI/BOOT/"] ``` This file needs to be saved on Region Controllers under /var/snap/maas/current/preseeds/curtin_userdata_rhel_arm64_generic_rhel8 or /etc/maas/preseeds/curtin_userdata_rhel_arm64_generic_rhel8. The last portion of this file must match the image name uploaded in MAAS. diff --git a/rhel9/README.md b/rhel9/README.md index 7579cff..7a956e7 100644 --- a/rhel9/README.md +++ b/rhel9/README.md @@ -101,6 +101,8 @@ extract_commands: late_commands: maas: [wget, '--no-proxy', '{{node_disable_pxe_url}}', '--post-data', '{{node_disable_pxe_data}}', '-O', '/dev/null'] + bootloader_01: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/shimaa64.efi", "/boot/efi/EFI/BOOT/bootaa64.efi"] + bootloader_02: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/redhat/grubaa64.efi", "/boot/efi/EFI/BOOT/"] ``` This file needs to be saved on Region Controllers under /var/snap/maas/current/preseeds/curtin_userdata_rhel_arm64_generic_rhel9 or /etc/maas/preseeds/curtin_userdata_rhel_arm64_generic_rhel9. The last portion of this file must match the image name uploaded in MAAS. diff --git a/rocky8/README.md b/rocky8/README.md index 58fffa9..168e736 100644 --- a/rocky8/README.md +++ b/rocky8/README.md @@ -105,6 +105,8 @@ extract_commands: late_commands: maas: [wget, '--no-proxy', '{{node_disable_pxe_url}}', '--post-data', '{{node_disable_pxe_data}}', '-O', '/dev/null'] + bootloader_01: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/rocky/shimaa64.efi", "/boot/efi/EFI/BOOT/bootaa64.efi"] + bootloader_02: ["curtin", "in-target", "--", "cp", "-v", "/boot/efi/EFI/rocky/grubaa64.efi", "/boot/efi/EFI/BOOT/"] ``` This file needs to be saved on Region Controllers under /var/snap/maas/current/preseeds/curtin_userdata_custom_arm64_generic_rocky8 or /etc/maas/preseeds/curtin_userdata_custom_arm64_generic_rocky8. The last portion of this file must match the image name uploaded in MAAS.