aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-09 17:08:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-09 17:08:14 +0000
commit1176d8a6f742636b3af60ad06756f0f670d851cf (patch)
tree0ede969e23bd66d56f3f465c5c23b69972d50200 /lib/Iurt/Chroot.pm
parent4209a52a69ea87794c293011ce964e3c8c1dd3ec (diff)
downloadiurt-1176d8a6f742636b3af60ad06756f0f670d851cf.tar
iurt-1176d8a6f742636b3af60ad06756f0f670d851cf.tar.gz
iurt-1176d8a6f742636b3af60ad06756f0f670d851cf.tar.bz2
iurt-1176d8a6f742636b3af60ad06756f0f670d851cf.tar.xz
iurt-1176d8a6f742636b3af60ad06756f0f670d851cf.zip
replace "rpm --initdb" with "mkdir -p /var/lib/rpm" since --initdb in rpm
4.4.6+ was mostly creating the /var/lib/rpm, but is otherwise useless in all rpm versions
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 546a2ca..40d93e9 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -508,7 +508,8 @@ sub build_chroot {
. join(', ', @{$opt->{packages}}));
sudo($run, $config, "--mkdir", "-p", "$tmp_chroot/dev/pts",
- "$tmp_chroot/etc/sysconfig", "$tmp_chroot/proc");
+ "$tmp_chroot/etc/sysconfig", "$tmp_chroot/proc",
+ "$tmp_chroot/var/lib/rpm");
# create empty files
foreach ('/etc/mtab') {
@@ -524,8 +525,6 @@ sub build_chroot {
sudo($run, $config, '--cp', "/etc/hosts", "$tmp_chroot/etc/");
sudo($run, $config, '--cp', "/etc/resolv.conf", "$tmp_chroot/etc/");
- sudo($run, $config, "--initdb", $tmp_chroot);
-
# install chroot
my $urpmi = $run->{urpmi};