Mageia Bugzilla – Attachment 2790 Details for
Bug 7329
iurt asks for password and fails to report its version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix
7329.diff (text/plain), 462 bytes, created by
Thierry Vignaud
on 2012-09-12 15:54:51 CEST
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-09-12 15:54:51 CEST
Size:
462 bytes
patch
obsolete
>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}) {
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}) {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 7329
: 2790