diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-02-18 01:11:51 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-02-18 01:13:13 +0100 |
commit | d590e8727f7274119df1f9e98adc11aca6aafaaa (patch) | |
tree | 95af989380b34bc8c10acd96f3b12b834e994dd3 | |
parent | 377e714008c08a1b8439ae619624b1218627afd9 (diff) | |
download | drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.gz drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.bz2 drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.xz drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.zip |
mount again debugfs for ldetect (mga#14435)
regression from commit 63d2a603b9b2bc27090405ba4a05a4aaa8840ea2
-rw-r--r-- | mdk-stage1/NEWS | 3 | ||||
-rw-r--r-- | mdk-stage1/init.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS index 6d8399e30..d6c2cdf34 100644 --- a/mdk-stage1/NEWS +++ b/mdk-stage1/NEWS @@ -1,3 +1,6 @@ +- mount again debugfs for ldetect (mga#14435) + (regression in 1.83) + 2.12 - recognize new kernel-3.19 drivers diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 920cffc45..dad02f399 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); |