Support for rockylinux EFI

Hi,

just noticed my topic was closed a little too early.

Everything working like a charm on VMs but real nightmare on UEFI bare metal:

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 1886, in curthooks
builtin_curthooks(cfg, target, state)
File “/curtin/curtin/commands/curthooks.py”, line 1851, in builtin_curthooks
setup_grub(cfg, target, osfamily=osfamily,
File “/curtin/curtin/commands/curthooks.py”, line 804, in setup_grub
install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
File “/curtin/curtin/commands/install_grub.py”, line 398, in install_grub
in_chroot.subp(cmd, env=env, capture=True)
File “/curtin/curtin/util.py”, line 780, in subp
return subp(*args, **kwargs)
File “/curtin/curtin/util.py”, line 275, in subp
return _subp(*args, **kwargs)
File “/curtin/curtin/util.py”, line 139, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: [‘unshare’, ‘–fork’, ‘–pid’, ‘–’, ‘chroot’, ‘/tmp/tmpqkhzgamy/target’, ‘grub2-mkconfig’, ‘-o’, ‘/boot/efi/EFI/redhat/grub.cfg’]
Exit code: 1
Reason: -
Stdout: ‘’
Stderr: /usr/sbin/grub2-mkconfig: line 274: /boot/efi/EFI/redhat/grub.cfg.new: No such file or directory

    Unexpected error while running command.
    Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpqkhzgamy/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/redhat/grub.cfg']
    Exit code: 1
    Reason: -
    Stdout: ''
    Stderr: /usr/sbin/grub2-mkconfig: line 274: /boot/efi/EFI/redhat/grub.cfg.new: No such file or directory

Stderr: ‘’

The error makes sense to me, didn’t think about it before.

I’ll open a bug in curtin.

BR
Francesco

Hi,

the bug has been fixed,

Testing it right now.

BR

Hi, still having the same issue, bug updated.

BR
Francesco

thx for the updates.