From 8352082eb6582d6e7adc26fc64dfd2255eadf2a7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 1 Dec 2013 16:31:02 -0600 Subject: devfs: add code to mount /dev All Linux systems need /dev to be set up,so add code to devfs to do this. The process devfs follows is below. 1. If static_dev is yes, nothing is done. 2. if /dev is an entry in fstab it is mounted or remounted based on that entry. 3. If /dev is not in fstab, it attempts to mount /dev as a devtmpfs or tmpfs depending on which is defined in the kernel; devtmpfs is preferred. 4. If neither devtmpfs nor tmpfs is defined, it assumes the user wants static /dev and prints a warning. X-Gentoo-Bug: 492694 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=492694 --- conf.d/Makefile | 2 +- conf.d/devfs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 conf.d/devfs (limited to 'conf.d') diff --git a/conf.d/Makefile b/conf.d/Makefile index aefb6121..93476fc2 100644 --- a/conf.d/Makefile +++ b/conf.d/Makefile @@ -15,7 +15,7 @@ include ${MK}/os.mk CONF-FreeBSD= ipfw moused powerd rarpd savecore syscons -CONF-Linux= consolefont dmesg hwclock keymaps killprocs modules +CONF-Linux= consolefont devfs dmesg hwclock keymaps killprocs modules CONF-NetBSD= moused rarpd savecore diff --git a/conf.d/devfs b/conf.d/devfs new file mode 100644 index 00000000..92a8a99d --- /dev/null +++ b/conf.d/devfs @@ -0,0 +1,2 @@ +# Set this to yes if your /dev is not a devtmpfs or tmpfs. +# static_dev="NO" -- cgit v1.2.3