diff options
-rw-r--r-- | lib/Iurt/Chroot.pm | 2 |
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); |