aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-05-29 15:14:06 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-05-29 15:14:06 +0000
commit9bd992ff009c972410d859069fc8de4892a9a496 (patch)
tree8cf2d5a4441e26076e8388dda3de7c63b317bc71 /lib/Iurt/Chroot.pm
parent161ff4ac43f61e65eb140be37002f6cd932b31ac (diff)
downloadiurt-9bd992ff009c972410d859069fc8de4892a9a496.tar
iurt-9bd992ff009c972410d859069fc8de4892a9a496.tar.gz
iurt-9bd992ff009c972410d859069fc8de4892a9a496.tar.bz2
iurt-9bd992ff009c972410d859069fc8de4892a9a496.tar.xz
iurt-9bd992ff009c972410d859069fc8de4892a9a496.zip
- Also makes sure /dev/pts is unmounted too.
- Redirect errors to /dev/null, as usual here.
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 54ff787..0f52f56 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -467,7 +467,8 @@ sub build_chroot {
}
system($sudo, 'chown', '-R', 499, "$tmp_chroot/home/builder");
sudo($run, $config, "--rm", "$tmp_chroot/var/lib/rpm/__db*");
- system("sudo umount $tmp_chroot/proc");
+ system("$sudo umount $chroot/proc &> /dev/null");
+ system("$sudo umount $chroot/dev/pts &> /dev/null");
return !system($sudo, 'tar', 'czf', $chroot_tar, '-C', $tmp_chroot, '.');
}
}