aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-12 17:35:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-12 17:35:55 +0000
commit0312f3371249d9fdd3a2db66707b91f50ef19ee1 (patch)
tree7a71feb6b2c55b8f5c0d4841cb22fb10fdeb86eb
parentab9618c7eb153784473d9ab3a03a5a504e3c783d (diff)
downloadiurt-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
-rw-r--r--NEWS1
-rw-r--r--lib/Iurt/Chroot.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 250d89c..999b01f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
0.6.11 (unreleased)
+- mount /dev/shm as --bind like other mount points (mga#7329)
0.6.10
- fix false positive when looking for errors
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}) {