From 1176d8a6f742636b3af60ad06756f0f670d851cf Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 9 Jan 2008 17:08:14 +0000 Subject: 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 --- lib/Iurt/Chroot.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/Iurt') 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}; -- cgit v1.2.1