Remove manual /root/lorax-packages.log creation

Lorax already writes this list of installed packages when it creates the
iso. There is no need to run rpm from inside runtime-postinstall.tmpl

Resolves: RHEL-54534
This commit is contained in:
Brian C. Lane 2024-08-15 14:46:35 -07:00
parent 8c3b4e179b
commit 868e455f7e

View File

@ -118,12 +118,6 @@ append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
remove etc/nvme/hostid
remove etc/nvme/hostnqn
## Record the package versions used to create the image
## rpm initializes nss, which requires /dev/urandom to be present, hence the mknod
runcmd chroot ${root} /usr/bin/mknod -m 666 /dev/random c 1 8
runcmd chroot ${root} /usr/bin/mknod -m 666 /dev/urandom c 1 9
runcmd chroot ${root} /usr/bin/rpm -qa --pipe "tee /root/lorax-packages.log"
## TODO: we could run prelink here if we wanted?
## fix fonconfig cache containing timestamps