From 15d5f7d66373cb8962262a0cd367bed3766b72ad Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 1 Nov 2010 22:56:53 +0000 Subject: use iurt_root_command to umount --- lib/Iurt/Chroot.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 5ed6753..973f001 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -556,13 +556,13 @@ sub build_chroot { system($sudo, 'chroot', $tmp_chroot, 'adduser', '-o', '--uid', 499, 'builder'); # FIXME: Be careful! Damn ugly hack right below! sudo($run, $config, "--rm", "$tmp_chroot/var/lib/rpm/__db*"); - system("$sudo umount $tmp_chroot/proc &> /dev/null"); - system("$sudo umount $tmp_chroot/dev/pts &> /dev/null"); + sudo($run, $config, "--umount", "$tmp_chroot/proc"); + sudo($run, $config, "--umount", "$tmp_chroot/dev/pts"); if ($run->{icecream}) { - system("$sudo umount $tmp_chroot/var/cache/icecream &> /dev/null"); + sudo($run, $config, "--umount", "$tmp_chroot/var/cache/icecream"); } if (-d "$tmp_chroot/urpmi_medias/") { - system("$sudo umount $tmp_chroot/urpmi_medias"); + sudo($run, $config, "--umount", "$tmp_chroot/urpmi_medias"); } return sudo($run, $config, "--tar", $chroot_tar, $tmp_chroot); } -- cgit v1.2.1