aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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};