diff options
-rw-r--r-- | loader2/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/loader2/init.c b/loader2/init.c index 4dbef0c64..675713941 100644 --- a/loader2/init.c +++ b/loader2/init.c @@ -494,6 +494,13 @@ int main(int argc, char **argv) { } printf("done\n"); + printf("mounting /sys filesystem... "); + if (!testing) { + if (mount("/sys", "/sys", "sysfs", 0, NULL)) + fatal_error(1); + } + printf("done\n"); + /* these args are only for testing from commandline */ for (i = 1; i < argc; i++) { if (!strcmp (argv[i], "serial")) { |