From b774869c3b1272ca1f6101df75c4d26c2046b2af Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Sun, 22 May 2022 14:18:20 +0200 Subject: [PATCH] Fix grub setup on Gentoo After some recent reordering[0], the /boot/grub directory isn't created early enough on Gentoo any more, let us just ensure ourselves that it is in place when we create the grub config. [0] I8cb34914bbbfa05521bbb71cc6637368b980358f Change-Id: I8a84d08c3090e46b00d1d626fb984f66ea33f256 --- diskimage_builder/elements/bootloader/finalise.d/50-bootloader | 1 + 1 file changed, 1 insertion(+) diff --git a/diskimage_builder/elements/bootloader/finalise.d/50-bootloader b/diskimage_builder/elements/bootloader/finalise.d/50-bootloader index 9d86f92e..3b451d02 100755 --- a/diskimage_builder/elements/bootloader/finalise.d/50-bootloader +++ b/diskimage_builder/elements/bootloader/finalise.d/50-bootloader @@ -68,6 +68,7 @@ else # unconditionally. GRUB_CFG=/boot/grub/grub.cfg GRUBENV=/boot/grub/grubenv + mkdir -p /boot/grub fi # When using EFI image-based builds, particularly rhel element