Fails bootstrapping when _rpmlock_path's dir doesn't exis
Bug #643551 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Triaged
|
Low
|
Unassigned | ||
Fedora |
Fix Released
|
Medium
|
|||
rpm (Debian) |
Fix Released
|
Unknown
|
Bug Description
tracker
Changed in rpm: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: fedora locking rpmdb |
tags: | added: debian |
affects: | debian → rpm (Debian) |
Changed in rpm (Debian): | |
status: | Unknown → Fix Released |
Changed in fedora: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
Hi,
This was originally filed as a bug against Yum, /devel. linux.duke. edu/bugzilla/ show_bug. cgi?id= 665.
https:/
Mach and Mock both fail bootstrapping a root when /var/lib/rpm does not exist on /__db.000. When /var/lib/rpm does not exist, Yum fails locking over var/lib/ rpm (which happens to exist and would be
the host. This seems to be due to the %_rpmlock_path macro which defaults to
%{_dbpath}
this file, but Yum should not try using this file when passed an installroot, it
should try using $installroot/
usable).
Yum's upstream commented that this doesn't seem to be a Yum bug, and that I
should preferably file a bug against Mock. See Yum bug #665 for details.
Some relevants logs for this bug: devel-i386- core init
Success run:
bee% mock -r fedora-
init
clean
prep
This may take a while
ending
done
Finished initializing root
Failing run: devel-i386- core init
bee% mock -r fedora-
init
clean
prep
This may take a while
Could not find useradd in chroot, maybe the install failed?
ending
done
I'll attach the resulting root.log which fails during: mock-helper yum --installroot mock/fedora- development- i386-core/ root install buildsys-build ======= ======= ======= ======= ======= ======= ======= ======= ======= =======
Executing /usr/sbin/
/var/lib/
[...]
Transaction Summary
=======
Install 98 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 100 M 5.3-1.fc6: Header V3 DSA signature: NOKEY, key ID 1ac70ce6 rpm/__db. 000
warning: unzip-5.52-2.2.1: Header V3 DSA signature: NOKEY, key ID 897da07a
warning: rpmdevtools-
error: can't create transaction lock on /var/lib/
Bye,