* [gentoo-commits] proj/genkernel:debug-build commit in: defaults/
@ 2014-04-14 0:48 Robin H. Johnson
0 siblings, 0 replies; only message in thread
From: Robin H. Johnson @ 2014-04-14 0:48 UTC (permalink / raw
To: gentoo-commits
commit: a02ef6d249ea90eeda05c8857d093a33cef8f5b8
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 13 23:52:37 2014 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 13 23:52:37 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=a02ef6d2
More device nodes.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
defaults/linuxrc | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/defaults/linuxrc b/defaults/linuxrc
index ed808e4..6401614 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -434,8 +434,10 @@ then
chmod 755 "${NEW_ROOT}/${i}"
done
[ ! -d "${CDROOT_PATH}" ] && mkdir -p "${CDROOT_PATH}"
- [ ! -e "${NEW_ROOT}/dev/null" ] && mknod "${NEW_ROOT}"/dev/null c 1 3
- [ ! -e "${NEW_ROOT}/dev/console" ] && mknod "${NEW_ROOT}"/dev/console c 5 1
+ [ ! -e "${NEW_ROOT}/dev/null" ] && mknod -m 660 "${NEW_ROOT}"/dev/null c 1 3
+ [ ! -e "${NEW_ROOT}/dev/zero" ] && mknod -m 660 "${NEW_ROOT}"/dev/zero c 1 5
+ [ ! -e "${NEW_ROOT}/dev/console" ] && mknod -m 660 "${NEW_ROOT}"/dev/console c 5 1
+ [ ! -e "${NEW_ROOT}/dev/ttyS0" ] && mknod -m 600 "${NEW_ROOT}"/dev/ttyS0 c 4 64
# For SGI LiveCDs ...
if [ "${LOOPTYPE}" = "sgimips" ]
@@ -446,10 +448,9 @@ then
# Required for splash to work. Not an issue with the initrd as this
# device isn't created there and is not needed.
- if [ -e /dev/tty1 ]
- then
- [ ! -e "${NEW_ROOT}/dev/tty1" ] && mknod "${NEW_ROOT}/dev/tty1" c 4 1
- fi
+ for minor in 0 1 ; do
+ [ ! -e "${NEW_ROOT}/dev/$minor" ] && mknod -m 600 "${NEW_ROOT}/dev/tty$minor" c 4 $minor
+ done
if [ "${REAL_ROOT}" != "/dev/nfs" ] && [ "${LOOPTYPE}" != "sgimips" ]
then
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-14 0:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 0:48 [gentoo-commits] proj/genkernel:debug-build commit in: defaults/ Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox