Bug 671200 - readonly fs vs --root
Summary: readonly fs vs --root
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 18:19 UTC by Matthias Clasen
Modified: 2014-01-21 06:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-21 07:51:43 UTC
Type: ---


Attachments (Terms of Use)

Description Matthias Clasen 2011-01-20 18:19:27 UTC
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

Comment 1 Matthias Clasen 2011-01-20 18:22:26 UTC
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.

Comment 2 Panu Matilainen 2011-01-21 07:51:43 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.