## RHCOS ISO Mount ```bash # Mount RHCOS ISO from subdirectory sudo mount -o loop ./rhcos/rhcos-416.94.202410211619-0-live.s390x.iso ~/mnt/rhcos ``` ## RHEL ISO Mount ```bash # Mount RHEL ISO from subdirectory sudo mount -o loop ./rhel/rhel-9.5-s390x-boot.iso ~/mnt/rhel ``` ## Working with ISO Content in Read-Write Mode ISO9660 filesystems are inherently read-only. To work with the content in a read-write manner: ### Option 1: Extract and Work with Content ```bash # For RHCOS mkdir -p ~/rw-rhcos cp -r ~/mnt/rhcos/* ~/rw-rhcos/ # Now modify content in ~/rw-rhcos/ # For RHEL mkdir -p ~/rw-rhel cp -r ~/mnt/rhel/* ~/rw-rhel/ # Now modify content in ~/rw-rhel/ ``` ### Option 2: Use OverlayFS (Advanced) ```bash # For RHCOS mkdir -p ~/overlay-rhcos/{lower,upper,work,merged} sudo mount -o loop ./rhcos/rhcos-416.94.202410211619-0-live.s390x.iso ~/overlay-rhcos/lower sudo mount -t overlay -o lowerdir=~/overlay-rhcos/lower,upperdir=~/overlay-rhcos/upper,workdir=~/overlay-rhcos/work overlay ~/overlay-rhcos/merged # Now you can modify files in ~/overlay-rhcos/merged and changes will be stored in ~/overlay-rhcos/upper ``` ### Option 3: Create a New ISO After Modifications ```bash # After making changes in the extracted directory, create a new ISO: sudo genisoimage -o new-rhcos.iso -r -J -V "RHCOS_NEW" ~/rw-rhcos/ ``` ## Unmount Commands When you're done using the ISOs, unmount them with: ```bash sudo umount ~/mnt/rhcos sudo umount ~/mnt/rhel ```