From 551911eecad9754294a68bcc6497cdbc3d4e2a68 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 3 Feb 2013 19:06:01 +0100 Subject: Replace a call to sudo mkdir with iurt_root_command --- lib/Iurt/Chroot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Iurt/Chroot.pm') 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); -- cgit v1.2.1