Bug 479719 - Relative --tmpdir corrupts system rpmdb
Relative --tmpdir corrupts system rpmdb
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: livecd-tools (Show other bugs)
10
x86_64 Linux
low Severity high
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-12 12:22 EST by Jan Kratochvil
Modified: 2009-01-12 15:17 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-12 15:17:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2009-01-12 12:22:56 EST
Description of problem:
If I use --tmpdir=./tmp it starts intallation while using /var/lib/rpm.

Version-Release number of selected component (if applicable):
livecd-tools-020-1.fc10.x86_64
yum-3.2.20-5.fc10.noarch
rpm-4.6.0-0.rc3.1.fc10.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. mkdir tmp; livecd-creator -c psi-i686.ks --cache=./cache --tmpdir=./tmp

Actual results:
Package 1:dejagnu-1.4.4-13.fc10.noarch already installed and latest version
Package cvsutils-0.2.5-1.fc10.noarch already installed and latest version
...
$ ls -l /proc/15904/fd/
...
lr-x------ 1 root root 64 2009-01-12 18:19 12 -> /var/lib/rpm/Packages
lr-x------ 1 root root 64 2009-01-12 18:19 13 -> /var/lib/rpm/Name
...

Expected results:
(silent installation)
$ ls -l /proc/15127/fd/
...
lr-x------ 1 root root 64 2009-01-12 18:13 12 -> /sdb1/psi/tmp/imgcreate-FNj_L9/install_root/var/lib/rpm/Packages
lr-x------ 1 root root 64 2009-01-12 18:13 13 -> /sdb1/psi/tmp/imgcreate-FNj_L9/install_root/var/lib/rpm/Name
lr-x------ 1 root root 64 2009-01-12 18:13 14 -> /sdb1/psi/tmp/imgcreate-FNj_L9/install_root/var/lib/rpm/Providename
lrwx------ 1 root root 64 2009-01-12 18:13 15 -> /sdb1/psi/tmp/imgcreate-FNj_L9/install_root/var/lib/rpm/Basenames
...

Additional info:
It is enough to change the command
  mkdir tmp; livecd-creator -c psi-i686.ks --cache=./cache --tmpdir=./tmp
to
  mkdir tmp; livecd-creator -c psi-i686.ks --cache=./cache --tmpdir=$PWD/tmp
.
I find it a bit dangerous the current way.
Comment 1 Jeremy Katz 2009-01-12 15:17:05 EST
Fixed in git

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