So i think when rocky is detected /rocky/ should be used instead of /redhat/.
Or maybe even a /*/ glob, or a set of allowed patterns? Given how many different operating systems there are that use the same installation methods in curtin. I.e. rhel, centos, fedora, rocky, etc.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpqkhzga my/target' , 'grub2-mkconfig', '-o', '/boot/ efi/EFI/ redhat/ grub.cfg' ]
does not look correct, given that rocky edition of grub2 ships:
/boot/efi/ EFI/rocky/ grub.cfg EFI/rocky/ grubenv EFI/rocky/ grubx64. efi entries
/boot/efi/
/boot/efi/
/boot/grub2/grubenv
/boot/loader/
/etc/grub2-efi.cfg
and so on.
So i think when rocky is detected /rocky/ should be used instead of /redhat/.
Or maybe even a /*/ glob, or a set of allowed patterns? Given how many different operating systems there are that use the same installation methods in curtin. I.e. rhel, centos, fedora, rocky, etc.