Oracle Linux 8 and 9 not being deployed

Hi all,

I am using the latest Maas version (3.4) with Ubuntu 20.04 LTS (the default) as the comissioning distro.
I tried to follow the instructions present athttps://github.com/canonical/packer-maas/tree/main/ol8 and https://github.com/canonical/packer-maas/tree/main/ol9 with some changes described in Informative post about OL8 and OL9 image creation with latest packer-maas but until now I have been unsuccessful to launch an Oracle Linux 8 or 9 Machine.

Server Specs:
HP DL380 Gen 10+ with EFI enabled

My commands for the image generation (similar for ol9):

git clone https://github.com/canonical/packer-maas.git
cd packer-maas/ol8
mv http/ol8.ks.in http/ol8.ks
sed -i 's/${KS_PROXY}//' http/ol8.ks
packer init .
PACKER_LOG=1 packer build .
maas admin $PROFILE boot-resources create name='custom/ol-8.8' title='Oracle Linux 8.8' architecture='amd64/generic' filetype='tgz' content@=ol8.tar.gz -k

The error after trying the deploy on MaaS:

OL8:

   Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.091
        devsync happy - path /dev/sda now exists
        return volume path /dev/sda1
        install_devices: ['/dev/sda1']
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.011
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.013
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        UEFI remove old olders efi output:
        {'current': '0019', 'timeout': '20 seconds', 'order': ['0019', '0012', '000E', '0018', '0016', '0017', '000C', '000D', '0000', '0001', '0002', '0003', '0004', '0005', '0006', '0007', '0008', '0009', '000A', '000B', '000F', '0010', '0011'], 'entries': {'0000': {'name': 'System Utilities', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(1fd631e5-44e0-2f91-10ab-f88f3568ef30)'}, '0001': {'name': 'Non bootable Hotkey', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(4affaab0-1376-44b4-9c6e-e92388751bc6)'}, '0002': {'name': 'Intelligent Provisioning', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(4a433501-ddaa-490b-96b2-04f42d8669b8)'}, '0003': {'name': 'Embedded UEFI Shell', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(c57ad6b7-0515-40a8-9d21-551652854e37)'}, '0004': {'name': 'Embedded iPXE', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(e22ad661-333a-4452-a101-64cc1898b837)'}, '0005': {'name': 'Diagnose Error', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(0849279d-40d5-53ea-e764-2496766f9844)'}, '0006': {'name': 'Boot Menu', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(d3fd6286-43c5-bb8d-0793-07b70aa9de36)'}, '0007': {'name': 'Network Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(0334f316-c276-49f6-9879-aaf1ecffa5d5)'}, '0008': {'name': 'View Integrated Management Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(93c92423-d1c6-4286-be67-b76b6671047e)'}, '0009': {'name': 'View GUI mode Integrated Management Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(f77778ab-a777-7777-9c58-60b5f0cba9d4)'}, '000A': {'name': 'View BIOS Event Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(c20a40f3-4f7f-b41f-f614-628093c6b567)'}, '000B': {'name': 'HTTP Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(3f770860-3d63-4803-9ea3-df37144ab546)'}, '000C': {'name': 'PXE Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(ee8b26b0-37e9-11e1-b86c-0800200c9a66)'}, '000D': {'name': 'Embedded Diagnostics', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(b57fe6f1-4f49-d46e-4bba-0a8add34d2f3)'}, '000E': {'name': 'Generic USB Boot', 'path': 'UsbClass(ffff,ffff,255,255)'}, '000F': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 447.1 GiB, RAID1 Logical Drive 1(Target:0, Lun:0)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,0)N.....YM....R,Y.'}, '0010': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 10.479 TiB, RAID5 Logical Drive 2(Target:0, Lun:1)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,1)N.....YM....R,Y.'}, '0011': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 1.455 TiB, RAID0 Logical Drive 3(Target:0, Lun:2)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,2)N.....YM....R,Y.'}, '0012': {'name': 'debian', 'path': 'HD(1,GPT,686883a3-bac9-42ee-a4b6-0bf9f8fe52db,0x800,0x100000)/File(\\EFI\\debian\\shimx64.efi)'}, '0016': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (HTTP(S) IPv6)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv6([::]:<->[::]:,0,0)/Uri()N.....YM....R,Y.'}, '0017': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (PXE IPv6)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.'}, '0018': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (HTTP(S) IPv4)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()N.....YM....R,Y.'}, '0019': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (PXE IPv4)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.'}}}
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        removing old UEFI entry: debian
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'efibootmgr', '-B', '-b', '0012'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.010
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        installing grub to target=/tmp/tmpidr9ssvc/target devices=['/dev/sda1'] [replace_defaults=None]
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'rpm', '-E', '%_arch'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.006
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'rpm', '-E', '%rhel'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.013
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        updated /tmp/tmpidr9ssvc/target/etc/default/grub to set: GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt rd.auto=1"
        Using grub install command: grub2-install
        find_efi_loader: found /boot/efi/EFI/BOOT/BOOTX64.EFI
        Grub install cmds:
        [['efibootmgr', '-v'], ['efibootmgr', '--create', '--write-signature', '--label', 'fedora', '--disk', '/dev/sda', '--part', '1', '--loader', '/EFI/BOOT/BOOTX64.EFI'], ['grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg'], ['efibootmgr', '-v']]
        Running command ['mount', '--bind', '/dev', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'efibootmgr', '--create', '--write-signature', '--label', 'fedora', '--disk', '/dev/sda', '--part', '1', '--loader', '/EFI/BOOT/BOOTX64.EFI'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.024
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpidr9ssvc/target/dev'] with allowed return codes [0] (capture=False)
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: FAIL: installing grub to target devices
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: configuring target system bootloader
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/commands/curthooks.py", line 1918, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1883, in builtin_curthooks
            setup_grub(cfg, target, osfamily=osfamily,
          File "/curtin/curtin/commands/curthooks.py", line 821, in setup_grub
            install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
          File "/curtin/curtin/commands/install_grub.py", line 444, in install_grub
            in_chroot.subp(cmd, env=env, capture=True)
          File "/curtin/curtin/util.py", line 792, in subp
            return subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 280, in subp
            return _subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 144, in _subp
            raise ProcessExecutionError(stdout=out, stderr=err,
        curtin.util.ProcessExecutionError: Unexpected error while running command.
        Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: /usr/sbin/grub2-mkconfig: line 274: /boot/efi/EFI/fedora/grub.cfg.new: No such file or directory
                
        Unexpected error while running command.
        Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpidr9ssvc/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: /usr/sbin/grub2-mkconfig: line 274: /boot/efi/EFI/fedora/grub.cfg.new: No such file or directory
                
        
Stderr: ''

OL9:

        Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.079
        devsync happy - path /dev/sda now exists
        return volume path /dev/sda1
        install_devices: ['/dev/sda1']
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.024
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.023
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        UEFI remove old olders efi output:
        {'current': '0019', 'timeout': '20 seconds', 'order': ['0013', '0012', '0019', '000E', '0018', '0016', '0017', '000C', '000D', '0000', '0001', '0002', '0003', '0004', '0005', '0006', '0007', '0008', '0009', '000A', '000B', '000F', '0010', '0011'], 'entries': {'0000': {'name': 'System Utilities', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(1fd631e5-44e0-2f91-10ab-f88f3568ef30)'}, '0001': {'name': 'Non bootable Hotkey', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(4affaab0-1376-44b4-9c6e-e92388751bc6)'}, '0002': {'name': 'Intelligent Provisioning', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(4a433501-ddaa-490b-96b2-04f42d8669b8)'}, '0003': {'name': 'Embedded UEFI Shell', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(c57ad6b7-0515-40a8-9d21-551652854e37)'}, '0004': {'name': 'Embedded iPXE', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(e22ad661-333a-4452-a101-64cc1898b837)'}, '0005': {'name': 'Diagnose Error', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(0849279d-40d5-53ea-e764-2496766f9844)'}, '0006': {'name': 'Boot Menu', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(d3fd6286-43c5-bb8d-0793-07b70aa9de36)'}, '0007': {'name': 'Network Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(0334f316-c276-49f6-9879-aaf1ecffa5d5)'}, '0008': {'name': 'View Integrated Management Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(93c92423-d1c6-4286-be67-b76b6671047e)'}, '0009': {'name': 'View GUI mode Integrated Management Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(f77778ab-a777-7777-9c58-60b5f0cba9d4)'}, '000A': {'name': 'View BIOS Event Log', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(c20a40f3-4f7f-b41f-f614-628093c6b567)'}, '000B': {'name': 'HTTP Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(3f770860-3d63-4803-9ea3-df37144ab546)'}, '000C': {'name': 'PXE Boot', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(ee8b26b0-37e9-11e1-b86c-0800200c9a66)'}, '000D': {'name': 'Embedded Diagnostics', 'path': 'FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(b57fe6f1-4f49-d46e-4bba-0a8add34d2f3)'}, '000E': {'name': 'Generic USB Boot', 'path': 'UsbClass(ffff,ffff,255,255)'}, '000F': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 447.1 GiB, RAID1 Logical Drive 1(Target:0, Lun:0)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,0)N.....YM....R,Y.'}, '0010': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 10.479 TiB, RAID5 Logical Drive 2(Target:0, Lun:1)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,1)N.....YM....R,Y.'}, '0011': {'name': 'Storage Slot 12 : HPE Smart Array P816i-a SR Gen10 - 1.455 TiB, RAID0 Logical Drive 3(Target:0, Lun:2)', 'path': 'PciRoot(0x4)/Pci(0x2,0x0)/Pci(0x0,0x0)/SCSI(0,2)N.....YM....R,Y.'}, '0012': {'name': 'fedora', 'path': 'HD(1,GPT,382c6b8e-8c7a-47be-bba6-b8c0a68b9988,0x800,0x100000)/File(\\EFI\\BOOT\\BOOTX64.EFI)'}, '0013': {'name': 'Oracle Linux', 'path': 'HD(1,GPT,382c6b8e-8c7a-47be-bba6-b8c0a68b9988,0x800,0x100000)/File(\\EFI\\redhat\\shimx64.efi)'}, '0016': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (HTTP(S) IPv6)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv6([::]:<->[::]:,0,0)/Uri()N.....YM....R,Y.'}, '0017': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (PXE IPv6)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.'}, '0018': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (HTTP(S) IPv4)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()N.....YM....R,Y.'}, '0019': {'name': 'Slot 1 Port 1 : Intel(R) Ethernet Network Adapter E810-XXV-4 (PXE IPv4)', 'path': 'PciRoot(0x1)/Pci(0x4,0x0)/Pci(0x0,0x0)/MAC(b49691c9f26a,1)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.'}}}
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        removing old UEFI entry: fedora
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '-B', '-b', '0012'] with allowed return codes [0] (capture=True)
        removing old UEFI entry: Oracle Linux
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '-B', '-b', '0013'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.019
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        installing grub to target=/tmp/tmpox3llp7e/target devices=['/dev/sda1'] [replace_defaults=None]
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'rpm', '-E', '%_arch'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.020
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'rpm', '-E', '%rhel'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.015
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        updated /tmp/tmpox3llp7e/target/etc/default/grub to set: GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt rd.auto=1"
        Using grub install command: grub2-install
        find_efi_loader: found /boot/efi/EFI/BOOT/BOOTX64.EFI
        Grub install cmds:
        [['efibootmgr', '-v'], ['efibootmgr', '--create', '--write-signature', '--label', 'fedora', '--disk', '/dev/sda', '--part', '1', '--loader', '/EFI/BOOT/BOOTX64.EFI'], ['grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg'], ['efibootmgr', '-v']]
        Running command ['mount', '--bind', '/dev', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'efibootmgr', '--create', '--write-signature', '--label', 'fedora', '--disk', '/dev/sda', '--part', '1', '--loader', '/EFI/BOOT/BOOTX64.EFI'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.022
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpox3llp7e/target/dev'] with allowed return codes [0] (capture=False)
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: FAIL: installing grub to target devices
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: configuring target system bootloader
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/commands/curthooks.py", line 1918, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1883, in builtin_curthooks
            setup_grub(cfg, target, osfamily=osfamily,
          File "/curtin/curtin/commands/curthooks.py", line 821, in setup_grub
            install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
          File "/curtin/curtin/commands/install_grub.py", line 444, in install_grub
            in_chroot.subp(cmd, env=env, capture=True)
          File "/curtin/curtin/util.py", line 792, in subp
            return subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 280, in subp
            return _subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 144, in _subp
            raise ProcessExecutionError(stdout=out, stderr=err,
        curtin.util.ProcessExecutionError: Unexpected error while running command.
        Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: /usr/sbin/grub2-mkconfig: line 278: /boot/efi/EFI/fedora/grub.cfg.new: No such file or directory
                
        Unexpected error while running command.
        Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpox3llp7e/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/fedora/grub.cfg']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: /usr/sbin/grub2-mkconfig: line 278: /boot/efi/EFI/fedora/grub.cfg.new: No such file or directory
                
        
Stderr: ''

Thanks a lot
BR

Oracle Linux requires MAAS 3.5, which is not released yet. We are updating the top-level README to clarify the status of this template

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.