Mageia Bugzilla – Attachment 5929 Details for
Bug 14435
"bug" command failed (USB devices were no more detected)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
mount again debugfs
14435.diff (text/plain), 527 bytes, created by
Thierry Vignaud
on 2015-02-18 01:14:04 CET
(
hide
)
Description:
mount again debugfs
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-02-18 01:14:04 CET
Size:
527 bytes
patch
obsolete
>diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c >index 920cffc..dad02f3 100644 >--- a/mdk-stage1/init.c >+++ b/mdk-stage1/init.c >@@ -482,6 +482,12 @@ int main(int argc, char **argv) > printf("*** TESTING MODE *** (pid is %d)\n", getpid()); > > >+ // needed for drakx: >+ if (!testing) >+ if (mount("none", "/sys/kernel/debug", "debugfs", MS_NOSUID, "mode=0755")) >+ fatal_error("Unable to mount debugfs filesystem"); >+ >+ > /* ignore Control-C and keyboard stop signals */ > signal(SIGINT, SIG_IGN); > signal(SIGTSTP, SIG_IGN);
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 920cffc..dad02f3 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -482,6 +482,12 @@ int main(int argc, char **argv) printf("*** TESTING MODE *** (pid is %d)\n", getpid()); + // needed for drakx: + if (!testing) + if (mount("none", "/sys/kernel/debug", "debugfs", MS_NOSUID, "mode=0755")) + fatal_error("Unable to mount debugfs filesystem"); + + /* ignore Control-C and keyboard stop signals */ signal(SIGINT, SIG_IGN); signal(SIGTSTP, SIG_IGN);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14435
:
5557
|
5558
|
5795
| 5929 |
5961