From 0312f3371249d9fdd3a2db66707b91f50ef19ee1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 12 Sep 2012 17:35:55 +0000 Subject: mount /dev/shm as --bind like other mount points (mga#7329) else it can result in sudo asking password --- NEWS | 1 + lib/Iurt/Chroot.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}) { -- cgit v1.2.1