Browse Source

Merge "Ensure redhat efi packages are reinstalled during finalise"

changes/04/788404/1
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
d03e7f1327
3 changed files with 12 additions and 10 deletions
  1. +2
    -1
      diskimage_builder/elements/bootloader/finalise.d/50-bootloader
  2. +9
    -8
      diskimage_builder/elements/bootloader/pkg-map
  3. +1
    -1
      diskimage_builder/elements/yum/bin/install-packages

+ 2
- 1
diskimage_builder/elements/bootloader/finalise.d/50-bootloader View File

@ -65,7 +65,8 @@ function install_grub2 {
"${DIB_BLOCK_DEVICE}" == "gpt" ]]; then
install-packages -m bootloader grub-pc
elif [[ "${DIB_BLOCK_DEVICE}" == "efi" ]]; then
install-packages -m bootloader grub-efi-$ARCH
install-packages -e -m bootloader grub-efi-$ARCH
install-packages -m bootloader grub-efi grub-efi-$ARCH
else
echo "Failure: I'm not sure what bootloader to install"
echo "Ensure you have included a block-device-* element"


+ 9
- 8
diskimage_builder/elements/bootloader/pkg-map View File

@ -18,20 +18,21 @@
"redhat": {
"extlinux": "syslinux-extlinux",
"grub-pc": "grub2-tools grub2",
"grub-efi-amd64": "grub2-tools grub2 grub2-pc grub2-efi-x64 grub2-efi-x64-modules efibootmgr shim-x64",
"grub-efi-arm64": "grub2-tools grub2-efi-aa64 grub2-efi-aa64-modules efibootmgr shim-aa64",
"grub-efi-aarch64": "grub2-tools grub2-efi-aa64 grub2-efi-aa64-modules efibootmgr shim-aa64",
"grub-efi": "grub2-tools grub2-efi efibootmgr",
"grub-efi-x86_64": "grub2-tools grub2 grub2-efi-x64 grub2-efi-x64-modules efibootmgr shim-x64",
"grub-ppc64": "grub2-tools grub2"
"grub-ppc64": "grub2-tools grub2",
"grub-efi": "grub2-tools grub2 efibootmgr",
"grub-efi-amd64": "grub2-efi-x64 grub2-efi-x64-modules shim-x64",
"grub-efi-x86_64": "grub2-efi-x64 grub2-efi-x64-modules shim-x64",
"grub-efi-arm64": "grub2-efi-aa64 grub2-efi-aa64-modules shim-aa64",
"grub-efi-aarch64": "grub2-efi-aa64 grub2-efi-aa64-modules shim-aa64"
}
},
"default": {
"dkms_package": "dkms",
"extlinux": "extlinux",
"grub-pc": "grub-pc",
"grub-efi-amd64": "grub-efi grub-pc-bin efibootmgr",
"grub-efi-arm64": "grub-efi-arm64 grub-efi-arm64-bin efibootmgr",
"grub-efi": "efibootmgr",
"grub-efi-amd64": "grub-efi grub-pc-bin",
"grub-efi-arm64": "grub-efi-arm64 grub-efi-arm64-bin",
"grub-ppc64": "grub-ieee1275"
}
}

+ 1
- 1
diskimage_builder/elements/yum/bin/install-packages View File

@ -53,7 +53,7 @@ while getopts "hud:em:" opt; do
DOWNLOAD_PATH=$OPTARG
;;
e)
ACTION="erase"
ACTION="remove"
;;
m)
MAP_ELEMENT=$OPTARG


Loading…
Cancel
Save