Custom repository on install DVD not looking in repo Packages directory

Posted on

I am attempting to streamline an install and have added a kickstart file and custom repo "RepoTest" via createrepo_c to the media and updated .treeinfo accordingly. This is based on the RHEL 9.3 DVD ISO.

The installer will first verify the treeinfo and repos and will find everything, but apparently when going to install packages from the repos it will not look for the RPMs in the Packages directory for the custom repos despite seeming to be structurally similar to BaseOS and AppStream, with a base directory representing the repo containing a repodata directory created based on createrepo_c being run agains the Packages directory.

Creating symlink in the base CustomRepo directory pointing to the corresponding package in the Packages directory allows the install to complete and packages to be installed. I would prefer not to resort to this workaround, and any help solving this issue would be greatly appreciated.

.treeinfo

[checksums]
images/efiboot.img = sha256:4859897726b53440b34684ea5efe00db453b7daaacf0814d148366a2d68ff775
images/install.img = sha256:3588050eef7240d19697f9d0b7bb14cdca3a1afe6ac29afb5d2d3a4fef7c5aa4
images/pxeboot/initrd.img = sha256:4080a4d952d5145625d18b822214982a87ad981c254fcac671ca9ea245da5e3d
images/pxeboot/vmlinuz = sha256:0d7a9a3c4804334b23cd43ffc3aedad4620192d9c520e2f466f56b96aeb2a284

[header]
type = productmd.treeinfo
version = 1.2

[images-x86_64]
efiboot.img = images/efiboot.img
initrd = images/pxeboot/initrd.img
kernel = images/pxeboot/vmlinuz

[media]
discnum = 1
totaldiscs = 1

[release]
name = CustomRepo
short = CustomRepo
version = 0.1

[stage2]
mainimage = images/install.img

[tree]
arch = x86_64
platforms = x86_64
build_timestamp = 1713538168.626243 
variants = AppStream,BaseOS,CustomRepo,CustomRepoDebug

[variant-AppStream]
id = AppStream
name = AppStream
packages = AppStream/Packages
repository = AppStream
type = variant
uid = AppStream

[variant-BaseOS]
id = BaseOS
name = BaseOS
packages = BaseOS/Packages
repository = BaseOS
type = variant
uid = BaseOS

[variant-CustomRepo]
id = CustomRepo
name = CustomRepo
packages = CustomRepo/Packages
repository = CustomRepo
type = variant
uid = CustomRepo


[variant-CustomRepoDebug]
id = CustomRepoDebug
name = CustomRepoDebug
packages = CustomRepoDebug/Packages
repository = CustomRepoDebug
type = variant
uid = CustomRepoDebug

comps.xml
This is for the CustomRepo repo and there is a nearly-identical one for CustomRepoDebug

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps
  PUBLIC '-//Red Hat, Inc.//DTD Comps info//EN'
  'comps.dtd'>
<comps>
  <group>
    <id>CustomRepo</id>
    <name>CustomRepo</name>
    <description>CustomRepo complete install</description>
    <default>true</default>
    <uservisible>false</uservisible>
    <packagelist>
      <packagereq type="mandatory">customRepo</packagereq>
    </packagelist>
  </group>
</comps>

Attachments

Responses