Bug #16820
closedUpgrading Katello 3.1 to 3.2 Error with /usr/bin/grub2-mkimage
Description
Upgrade Step: Running installer...
/usr/bin/grub2-mkimage -O x86_64-efi -d /usr/lib/grub/x86_64-efi -o /var/lib/tftpboot/grub2/grubx64.efi -p '' all_video boot btrfs cat chain configfile echo efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs linux backtrace usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug linuxefi returned 1 instead of one of [0]
When running this command manually it says the directory does not exist.
It can be solved manually by creating the directories and run the upgrade again.
mkdir /var/lib/tftboot/grub2
mkdir /var/lib/tftboot/grub
Expected results:
foreman-installer should create the directories for me if they don't exist.
How to reproduce:
If there is no grub2 dir in /var/lib/tftpboot.
https://git.io/vi4yY should have taken care of that