Hide Forgot
I'm used to using rpm --root with liveimage-mount to create a list of packages on a live cd: sudo liveimage-mount <iso> foo rpm --root $PWD -qa --qf "%{SIZE} %{NAME}\n" | sort -g > ../list This used to work until I updated to rpm 4.9.0, now it fails with error: db4 error(30) from dbenv->open: Read-only file system error: cannot open Packages index using db4 - Read-only file system (30) error: cannot open Packages database in /home/mclasen/dist-git/spin-kickstarts/foo/var/lib/rpm Interestingly, using --dbpath instead of --root still works
Ugh, no, I was wrong. Using --dbpath ./var/lib/rpm just ignores the . and treats it like the path was /var/lib/rpm. If I use --dbpath $PWD/var/lib/rpm, it fails in the same way.
Right, this is unintentional side-effect from reworking the rpmdb opening logic. Fixed in rpm-4.9.0-0.beta1.2.fc15, thanks for reporting.