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?