Additionnal details:
The ISO image had been created from the 'boot' image due to disk space and transfer rate considerations and the my_repo folder had been build to contain all required packages.
Usually, when installing from an iso, you should use the cdrom
command in your kickstart file, which will make use of the .treeinfo
to find the repositories available on the drive. It is available by default on the DVD ISO but is not on the boot ISO and creating it to index the custom repository seemed to have no effect.
The answer:
Instead of using a combination of cdrom
and repo
commands, simply using url --url=file:///run/install/repo/my_repo
in the kickstart is sufficient to use the local repository as a main repository. Additionnal repositories may still be provided with the repo
command if needs be.
Related documentation: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user . Section B.2.21 for the specifics of the url
kickstart command
Note that I'm still interested in being able to generate an iso from a boot iso where cdrom
already points to the custom repository and will mark as the accepted answer such an answer.