diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-12 17:35:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-12 17:35:55 +0000 |
commit | 0312f3371249d9fdd3a2db66707b91f50ef19ee1 (patch) | |
tree | 7a71feb6b2c55b8f5c0d4841cb22fb10fdeb86eb /lib | |
parent | ab9618c7eb153784473d9ab3a03a5a504e3c783d (diff) | |
download | iurt-0312f3371249d9fdd3a2db66707b91f50ef19ee1.tar iurt-0312f3371249d9fdd3a2db66707b91f50ef19ee1.tar.gz iurt-0312f3371249d9fdd3a2db66707b91f50ef19ee1.tar.bz2 iurt-0312f3371249d9fdd3a2db66707b91f50ef19ee1.tar.xz iurt-0312f3371249d9fdd3a2db66707b91f50ef19ee1.zip |
mount /dev/shm as --bind like other mount points (mga#7329)
else it can result in sudo asking password
Diffstat (limited to 'lib')
-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 ca0882e..0f196e0 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -88,7 +88,7 @@ sub clean_and_build_chroot { sudo($config, "--umount", "$chroot/proc"); return; } - if (system("$sudo mount none -t tmpfs $chroot/dev/shm")) { + if (!sudo($config, '--bindmount', "/dev/shm", "$chroot/dev/shm")) { plog('WARNING', "Failed to mount /dev/shm"); } if ($run->{icecream}) { |