Creating a portable RHEL live boot iso image
by jwinc7 from LinuxQuestions.org on (#4ZSWE)
Hello,
I am attempting to create a portable live boot RHEL ISO image. I have a requirement that it must be RHEL and the iso will reside on a multiboot partition of a portable hard drive. The intention of the image is to be able to boot from a laptop with no OS on it and use a browser to configure an ESXI server.
I have installed RHEL 7.7 onto a USB drive with 3 partitions: /, /boot and /boot/efi. I have tested the USB on all the different hardware platforms that this is intended to be used on and it works nicely.
I know it is possible to use dd to copy one partition into an iso file, but when I try all three, the iso is unreadable. Is there a way to create a bootable iso from my working USB with all three partitions?
If I need to use a single partiton, will it need to be FAT so that the BIOS can read it?
Additionally I will need to work out how the /etc/fstab calls out the drive. When I dd the image to a different USB drive it will not boot as there is a mismatch with the new USB drive's UUID. This is to be expected. I cannot call out the device such as /dev/sda as this is intended on being used on several laptop configurations and we don't know what device will be mounted first on bootup. Can an ISO file have it's own UUID?
Thank you in advance for all the help.
--jwinc7


I am attempting to create a portable live boot RHEL ISO image. I have a requirement that it must be RHEL and the iso will reside on a multiboot partition of a portable hard drive. The intention of the image is to be able to boot from a laptop with no OS on it and use a browser to configure an ESXI server.
I have installed RHEL 7.7 onto a USB drive with 3 partitions: /, /boot and /boot/efi. I have tested the USB on all the different hardware platforms that this is intended to be used on and it works nicely.
I know it is possible to use dd to copy one partition into an iso file, but when I try all three, the iso is unreadable. Is there a way to create a bootable iso from my working USB with all three partitions?
If I need to use a single partiton, will it need to be FAT so that the BIOS can read it?
Additionally I will need to work out how the /etc/fstab calls out the drive. When I dd the image to a different USB drive it will not boot as there is a mismatch with the new USB drive's UUID. This is to be expected. I cannot call out the device such as /dev/sda as this is intended on being used on several laptop configurations and we don't know what device will be mounted first on bootup. Can an ISO file have it's own UUID?
Thank you in advance for all the help.
--jwinc7