0

I'm facing an issue while booting a custom RHEL 8.10 ISO. During the boot process, I encounter the following error:

initqueue[1065]: /usr/sbin/fetch-kickstart-disk: line 24: rmdir: command not found 

I extracted initrd.img, modified /usr/sbin/fetch-kickstart-disk, and then rebuilt the ISO. However, the problem persists.

Has anyone encountered this issue before? Any suggestions on how to properly modify initrd.img or ensure rmdir is available during boot?

Thanks

This is what I tried:

  • Extract the image:
    xzcat initrd.img | cpio -idmv 
  • Modify line 24 to remove rmdir command:
    vi usr/sbin/fetch-kickstart-disk 
  • Recreate the image file
    find . | cpio -o -H newc | xz --check=crc32 -9 > /WORK/isolinux/initrd.img 
  • Build the ISO file
    xorriso -as mkisofs -o /RHEL-8-10-0-BaseOS-x86_64.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /WORK/ 

1 Answer 1

0

The isolinux/initrd.img on a standard RHEL 8.10 ISO image definitely includes /usr/bin/rmdir - I checked.

Without knowing what the customization in your custom RHEL 8.10 ISO is trying to achieve, it is hard to say anything definite, but it seems to me that something has probably gone wrong in the earlier customization process. Not having a basic command like rmdir available during the installation process might cause some number of package scripts to fail, making the customized ISO unusable as a general-purpose installer. But maybe that is not the goal in this case?

I would recommend contacting whoever made that initial customization, and reporting the problem. It's probably easier to correct the earlier error that caused rmdir to be not available than trying to further cut out functionality in an effort to live without it.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.