aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}) {