diskimage-builder/diskimage_builder/elements
Steve Baker 9987d0911a Move grub-install to the end, and skip for partition images
The bootloader element installs the grub bootloader for whole-disk
images, but it also correctly sets values in /etc/default/grub and BLS
entries.

This value setting is useful even if the bootloader isn't installed.
For example, the overcloud-full partition image benefits from a
correct /etc/default/grub and BLS entries which ironic-python-agent
will use when it installs grub on the disk during baremetal deploy.

This change moves the actual grub install to the end of the script,
and if there is no $DIB_BLOCK_DEVICE set then install is skipped.

This allows overcloud-full to use the bootloader element instead of
the grub2 element, so the correct grub defaults are set on centos9,
including the correct root device on centos9.

Change-Id: I8cb34914bbbfa05521bbb71cc6637368b980358f
2022-03-21 08:43:48 +13:00
..
apt-conf
apt-preferences Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
apt-sources
baremetal
base
block-device-efi Document EFI elements requirements 2021-11-26 08:46:42 +01:00
block-device-efi-lvm
block-device-gpt Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
block-device-mbr Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
bootloader
cache-url
centos Cleanup more CentOS 8 bits 2022-02-01 15:39:24 +11:00
centos7
centos-minimal Merge "Cleanup more CentOS 8 bits" 2022-02-09 04:39:00 +00:00
cleanup-kernel-initrd Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
cloud-init
cloud-init-datasources
cloud-init-disable-resizefs Disable growpart in cloud-init-disable-resizefs 2020-10-06 14:03:57 +02:00
cloud-init-nocloud
containerfile
debian
debian-minimal Futher bootloader cleanups 2022-02-10 15:08:56 +11:00
debian-systemd
debian-upstart
debootstrap debian-minimal: Set bullseye version 2021-04-28 09:48:22 -07:00
deploy-baremetal Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
deploy-kexec
deploy-targetcli
deploy-tgtadm
devuser
dhcp-all-interfaces
dib-init-system
dib-python
dib-run-parts
disable-nouveau
disable-selinux dib-lint: test elements have README.rst file 2020-01-20 11:43:43 +01:00
dkms Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
docker
dpkg
dracut-network
dracut-ramdisk
dracut-regenerate dracut-regenerate: drop Python 2 packages 2021-10-27 11:11:50 +11:00
dynamic-login
element-manifest
enable-serial-console
ensure-venv
epel
fedora
fedora-container
fedora-minimal
gentoo
growroot Revert "dib-lint: use yamllint to parse YAML files" 2020-05-28 16:44:49 +10:00
growvols
grub2
hpdsa
hwburnin
hwdiscovery
ibft-interfaces Add an element to configure iBFT network interfaces 2018-11-20 14:11:11 +01:00
ilo Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
install-bin
install-static
install-types
iscsi-boot
iso
journal-to-console
keylime-agent
local-config Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
lvm
manifests Set manifest permissions in the image 2017-05-24 15:20:55 +10:00
mellanox Mellanox element: removed ibutils,libibcm,libmlx4-dev 2020-03-23 00:06:53 +02:00
modprobe
modprobe-blacklist Add new modprobe element 2018-06-28 13:55:53 +02:00
no-final-image
oat-client
openeuler-minimal
openssh-server
openstack-ci-mirrors
opensuse Fix openSUSE images and bump them to 15.3 2022-01-28 02:18:47 -03:00
opensuse-minimal
package-installs
pip-and-virtualenv Remove extra if/then/else construct in pip element 2021-12-29 16:43:00 +01:00
pip-cache Fix DIB ubuntu-minimal running on bionic (18.04) 2018-10-01 19:59:30 -07:00
pkg-map
posix
proliant-tools Fix installation of proliant tools 2021-03-03 19:04:50 +01:00
pypi Deprecate dib-python; remove from in-tree elements 2020-08-07 10:38:16 +10:00
python-brickclient Merge branch 'master' into merge-branch 2017-02-09 13:35:53 +11:00
python-stow-versions
ramdisk
ramdisk-base
rax-nova-agent Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
redhat-common Revert "Use rpm -e instead of dnf for cleaning old kernels" 2022-02-09 03:33:34 +00:00
rhel
rhel7
rhel-common
rocky-container
rpm-distro
runtime-ssh-host-keys
select-boot-kernel-initrd
selinux-permissive
simple-init
source-repositories source-repositories: don't use --git-dir 2021-11-16 19:16:03 +11:00
stable-interface-names
svc-map
sysctl
sysprep
tpm-emulator
uboot
ubuntu
ubuntu-common
ubuntu-minimal General improvements to the ubuntu-minimal docs 2022-01-21 19:21:00 -03:00
ubuntu-signed
ubuntu-systemd-container
vm
yum
yum-minimal
zipl
zypper
zypper-minimal
__init__.py