diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-28 20:21:39 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-29 20:29:08 +0000 |
commit | 63d2a603b9b2bc27090405ba4a05a4aaa8840ea2 (patch) | |
tree | 9eb04263cc468f029cbca59eff0f27d94f8bd846 | |
parent | 49b778dec05a142690bf88ead5649fefe0adc1a6 (diff) | |
download | drakx-63d2a603b9b2bc27090405ba4a05a4aaa8840ea2.tar drakx-63d2a603b9b2bc27090405ba4a05a4aaa8840ea2.tar.gz drakx-63d2a603b9b2bc27090405ba4a05a4aaa8840ea2.tar.bz2 drakx-63d2a603b9b2bc27090405ba4a05a4aaa8840ea2.tar.xz drakx-63d2a603b9b2bc27090405ba4a05a4aaa8840ea2.zip |
stage1: Don't bother mounting various API filesystems.
Dracut mounts these already.
-rw-r--r-- | mdk-stage1/init.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 6d571a62a..24615704a 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -484,24 +484,6 @@ int main(int argc, char **argv) printf("*** TESTING MODE *** (pid is %d)\n", getpid()); - if (!testing) { - if (mount("/proc", "/proc", "proc", 0, NULL)) - fatal_error("Unable to mount proc filesystem"); - if (mount("none", "/sys", "sysfs", 0, NULL)) - fatal_error("Unable to mount sysfs filesystem"); - if (mount("none", "/sys/kernel/debug", "debugfs", MS_NOSUID, "mode=0755")) - fatal_error("Unable to mount debugfs filesystem"); - if (mount("none", "/dev", "devtmpfs", 0, NULL)) - fatal_error("Unable to mount dev filesystem"); - mkdir("/dev/pts", 0755); - if (mount("/dev/pts", "/dev/pts", "devpts", MS_NOSUID|MS_NOEXEC, "gid=5,mode=0620")) - fatal_error("Unable to mount /dev/pts devpts filesystem"); - mkdir("/dev/shm", 0755); - if (mount("/dev/shm", "/dev/shm", "tmpfs", MS_NOSUID|MS_NODEV, "mode=1777")) - fatal_error("Unable to mount /dev/shm tmpfs filesystem"); - } - - /* ignore Control-C and keyboard stop signals */ signal(SIGINT, SIG_IGN); signal(SIGTSTP, SIG_IGN); |