From 868e455f7eabba51d5cf7266d25ac2f210e4089d Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 15 Aug 2024 14:46:35 -0700 Subject: [PATCH] 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 --- 80-rhel/runtime-postinstall.tmpl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/80-rhel/runtime-postinstall.tmpl b/80-rhel/runtime-postinstall.tmpl index 3b0890f..9408c38 100644 --- a/80-rhel/runtime-postinstall.tmpl +++ b/80-rhel/runtime-postinstall.tmpl @@ -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