-
Bug
-
Resolution: Done
-
Critical
-
None
-
openshift-4.19
-
None
-
False
-
-
False
-
-
Hi,
In order to implement a workaround for a specific platform, I would like to inject custom scripts in the ignition of the ISO generated by the command openshift-install agent create image.
For this purpose, I use coreos-installer iso ignition show and coreos-installer iso ignition embed commands.
While it works properly for standard ISOs, coreos-installer rejects minimal ISOs:
Error: kargs don't match at all offsets! (expected 'rw ignition.firstboot ignition.platform.id=metal console=ttyS0 fips=1 'coreos.live.rootfs_url=https://rhcos.mirror.openshift.com/art/storage/prod/streams/rhel-9.6/builds/9.6.20250523-0/x86_64/rhcos-9.6.20250523-0-live-rootfs.x86_64.img'', but offset 124501833 has: '/images/assisted_installer_custom.img rw ignition.firstboot ignition.platform.id=metal console=ttyS0 fips=1 coreos.live.rootfs_url=https://rhcos.mirror.openshift.com/art/storage/prod/streams/rhel-9.6/builds/9.6.20250523-0/x86_64/rhcos-9.6.20250523-0-live-rootfs.x86_64.img')
Would it be possible to improve the CreateMinimalISO function around https://github.com/openshift/assisted-image-service/blob/mains/pkg/isoeditor/rhcos.go to generate conformant ISOs?
Thanks.
- duplicates
-
OCPBUGS-43501 coreos-installer iso kargs show broken when using minimal ISO
-
- ASSIGNED
-