Hello everyone,
Recently I had made an install of the LFS Book 9, and had decided after everything worked to create a bootable ISO using ISOLINUX. I followed the instructions from the ISOLINUX tutorial on the SYSLINUX Wiki and all went well until I received an error along the lines of "Failed to run init script /sbin/init. I booted back into my main system and mounted the ISO into a mount point and when attempting to chroot it said that /bin/bash did not exist, but the file did exist within the mount point.
Some quick notes to add is that I am testing all this through a Virtual Machine. When I copied the system to a folder (as per the ISOLINUX Wiki tutorial) and tried to chroot into that everything works fine, and same goes for booting into that from GRUB, so I know it has to be something with either my ISOLINUX config file or the mkisofs command I run.
This is the file structure for my main system:
Code:
/dev/sda1 - /cdroot
/dev/sdb1 - /boot/efi
/dev/sdb2 - /
This is the mkisofs command I use:
Code:
mkisofs -o output.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -f -l /mnt
This is the isolinux.cfg file:
Code:
DEFAULT linux
LABEL linux
KERNEL /boot/vmlinuz
APPEND root=/dev/sr0 initrd=/initrd.img vga=791 init=/sbin/init ro
Any help would be greatly appreciated!