⚠️ This is totally unsupported. Via elemental-iso-add-registration.
Requisites
- SLE Micro ISO (or any SLE ISO)
- xorriso. It can be installed with zypperor via theregistry.opensuse.org/isv/rancher/elemental/stable/teal53/15.4/rancher/elemental-builder-image/5.3:latestcontainer image.
Usage
Imagine you want to modify the /boot/grub2/grub.cfg file. You just need to:
- mount the ISO somewhere
ISO=${${HOME}/SLE-Micro.x86_64-5.4.0-Default-SelfInstall-GM.install.iso}
DIR=$(mktemp -d)
sudo mount ${ISO} ${DIR}
- extract the file
cp ${DIR}/boot/grub2/grub.cfg /tmp/mygrub.cfg
- perform the modifications as needed
- Umount the ISO (not really needed)
sudo umount ${DIR}
rmdir ${DIR} 
- rebuild the ISO as
xorriso -indev ${ISO} -outdev SLE-Micro-tweaked.iso -map /tmp/mygrub.cfg /boot/grub2/grub.cfg -boot_image any replay
xorriso 1.4.6 : RockRidge filesystem manipulator, libburnia project.
xorriso : NOTE : ISO image bears MBR with  -boot_image any partition_offset=16
xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE : 371 nodes read in 1 seconds
libisofs: WARNING : Found hidden El-Torito image. Its size could not be figured out, so image modify or boot image patching may lead to bad results.
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev './SLE-Micro.x86_64-5.4.0-Default-RT-SelfInstall-GM.install.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito , MBR grub2-mbr cyl-align-off
Media summary: 1 session, 494584 data blocks,  966m data,  114g free
Volume id    : 'INSTALL'
Drive current: -outdev 'SLE-Micro-tweaked.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data,  114g free
xorriso : UPDATE : 1 files added in 1 seconds
Added to ISO image: file '/boot/grub2/grub.cfg'='/tmp/mygrub.cfg'
xorriso : NOTE : Replayed 21 boot related commands
xorriso : NOTE : Copying to System Area: 32768 bytes from file '--interval:imported_iso:0s-15s:zero_mbrpt:./SLE-Micro.x86_64-5.4.0-Default-RT-SelfInstall-GM.install.iso'
xorriso : NOTE : Preserving in ISO image: -boot_image any partition_offset=16
xorriso : UPDATE : Writing:      32768s    6.5%   fifo 100%  buf  50%
xorriso : UPDATE : Writing:      67205s   13.3%   fifo  96%  buf  50%
xorriso : UPDATE : Writing:     442368s   87.6%   fifo 100%  buf  50%  553.8xD
ISO image produced: 504777 sectors
Written to medium : 504784 sectors at LBA 48
Writing to 'SLE-Micro-tweaked.iso' completed successfully.