aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@google.com>2013-02-03 19:06:01 +0100
committerPascal Terjan <pterjan@gmail.com>2014-01-19 05:13:33 +0000
commit551911eecad9754294a68bcc6497cdbc3d4e2a68 (patch)
tree4753189b8cfa2356d22faaf3224e30b788c005c7
parentf9482ff799e8b11c6b05ba6bca24558cd4f7fad2 (diff)
downloadiurt-551911eecad9754294a68bcc6497cdbc3d4e2a68.tar
iurt-551911eecad9754294a68bcc6497cdbc3d4e2a68.tar.gz
iurt-551911eecad9754294a68bcc6497cdbc3d4e2a68.tar.bz2
iurt-551911eecad9754294a68bcc6497cdbc3d4e2a68.tar.xz
iurt-551911eecad9754294a68bcc6497cdbc3d4e2a68.zip
Replace a call to sudo mkdir with iurt_root_command
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 5761e71..5d3ff49 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -91,7 +91,7 @@ sub clean_and_build_chroot {
plog('WARNING', "Failed to mount /dev/shm");
}
if ($run->{icecream}) {
- system("$sudo mkdir -p $chroot/var/cache/icecream");
+ sudo($config, '--mkdir', '-p', "$chroot/var/cache/icecream");
if (!sudo($config, '--bindmount', "/var/cache/icecream", "$chroot/var/cache/icecream")) {
plog('ERROR', "Failed to mount var/cache/icecream");
_clean_mounts($run, $config, $chroot);