summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-02-18 01:11:51 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-02-18 01:13:13 +0100
commitd590e8727f7274119df1f9e98adc11aca6aafaaa (patch)
tree95af989380b34bc8c10acd96f3b12b834e994dd3
parent377e714008c08a1b8439ae619624b1218627afd9 (diff)
downloaddrakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar
drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.gz
drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.bz2
drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.tar.xz
drakx-d590e8727f7274119df1f9e98adc11aca6aafaaa.zip
mount again debugfs for ldetect (mga#14435)
-rw-r--r--mdk-stage1/NEWS3
-rw-r--r--mdk-stage1/init.c6
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);