From c04ff4132b06ff449f5a083716ea4f3c965204ea Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 21 Oct 2014 10:04:47 -0700 Subject: [PATCH] Write list of packages to /root/lorax-packages.log --- share/runtime-postinstall.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index bf4f892f..95b2857a 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -111,4 +111,7 @@ remove etc/lvm/cache/* remove etc/lvm/cache append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n" +## Record the package versions used to create the image +runcmd chroot ${root} /bin/rpm -qa --pipe "tee /root/lorax-packages.log" + ## TODO: we could run prelink here if we wanted?