While we are trying to keep the image size small, while debugging things, it's *really* useful to know the versions of things inside.
I tried to trace back through the git history for a rationale for the removal of the rpmdb, and got as far back as 2009 with no specific debate.
So, putting this patch out there to start one. Another alternative is to extract just "rpm -qa" as text. That would be just about as useful, and much smaller (particularly when squashfs'd).
We still remove the yumdb. --- share/runtime-cleanup.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index 5150172..7baba13 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -69,7 +69,7 @@ remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text remove /usr/share/mime/video /usr/share/mime/x-content /usr/share/mime/x-epoc remove /var/db /var/games /var/tmp /var/yp /var/nis /var/opt /var/local remove /var/mail /var/spool /var/preserve /var/report -remove /var/lib/rpm/* /var/lib/yum +remove /var/lib/yum
## icons cache remove /usr/share/icons/*/icon-theme.cache
On Mon, Oct 20, 2014 at 08:16:31PM -0400, Colin Walters wrote:
While we are trying to keep the image size small, while debugging things, it's *really* useful to know the versions of things inside.
I tried to trace back through the git history for a rationale for the removal of the rpmdb, and got as far back as 2009 with no specific debate.
So, putting this patch out there to start one. Another alternative is to extract just "rpm -qa" as text. That would be just about as useful, and much smaller (particularly when squashfs'd).
We still remove the yumdb.
Nak from me. If you want to know the versions of things you can look at the build logs, everything will be listed there. There is no need to bloat the image for everyone when the debugging info can be accessed on the side.
Having said that, I do wonder how big it is. I'll do a lorax run tomorrow and see.
On Mon, 2014-10-20 at 17:41 -0700, Brian C. Lane wrote:
On Mon, Oct 20, 2014 at 08:16:31PM -0400, Colin Walters wrote:
While we are trying to keep the image size small, while debugging things, it's *really* useful to know the versions of things inside.
I tried to trace back through the git history for a rationale for the removal of the rpmdb, and got as far back as 2009 with no specific debate.
So, putting this patch out there to start one. Another alternative is to extract just "rpm -qa" as text. That would be just about as useful, and much smaller (particularly when squashfs'd).
We still remove the yumdb.
Nak from me. If you want to know the versions of things you can look at the build logs, everything will be listed there. There is no need to bloat the image for everyone when the debugging info can be accessed on the side.
That's a valid point, however, I'd like to add one more use case for the "rpmdb-like info" in the image -- bug reporting could mention versions of other packages (python-blivet, pykickstart, ...) in bugzillas.
Having said that, I do wonder how big it is. I'll do a lorax run tomorrow and see.
I think the 'rpm -qa|pigz > rpm_qa.txt.gz' should be really small. On my "full-fat" F20 installation it has 32K.
--- share/runtime-postinstall.tmpl | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index bf4f892..95b2857 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?
On Tue, 2014-10-21 at 10:06 -0700, Brian C. Lane wrote:
share/runtime-postinstall.tmpl | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index bf4f892..95b2857 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"
ACK.
anaconda-patches@lists.fedorahosted.org