diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-01 22:56:53 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-01 22:56:53 +0000 |
commit | 15d5f7d66373cb8962262a0cd367bed3766b72ad (patch) | |
tree | c9df4822cefc8799170e27580ccf30a215b326e9 /lib/Iurt/Chroot.pm | |
parent | f454167eb2274c088f28b1d198ad149b9f84ea98 (diff) | |
download | iurt-15d5f7d66373cb8962262a0cd367bed3766b72ad.tar iurt-15d5f7d66373cb8962262a0cd367bed3766b72ad.tar.gz iurt-15d5f7d66373cb8962262a0cd367bed3766b72ad.tar.bz2 iurt-15d5f7d66373cb8962262a0cd367bed3766b72ad.tar.xz iurt-15d5f7d66373cb8962262a0cd367bed3766b72ad.zip |
use iurt_root_command to umount
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 8 |
1 files changed, 4 insertions, 4 deletions
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: <mrl> 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); } |