Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-1268

coreos-installer iso commands fail against the minimal ISO

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • 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.

              rhn-support-pamoedom Pedro Jose Amoedo Martinez
              dollierp@redhat.com Denis Ollier Pinas
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: