From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 32D871393EB for ; Mon, 14 Apr 2014 01:16:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C810E0AF4; Mon, 14 Apr 2014 01:16:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A15D2E0AC9 for ; Mon, 14 Apr 2014 01:16:14 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFD6033FF77 for ; Mon, 14 Apr 2014 01:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 8DF7318734 for ; Mon, 14 Apr 2014 01:16:11 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1397437171.a8ade8646371e78b95b067af49fdf3934f0efe31.robbat2@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: a8ade8646371e78b95b067af49fdf3934f0efe31 X-VCS-Branch: master Date: Mon, 14 Apr 2014 01:16:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 417a15db-b289-4242-b9a5-f8abea6dd43f X-Archives-Hash: a31553a8fd03a88b12c7b757c1182168 commit: a8ade8646371e78b95b067af49fdf3934f0efe31 Author: Robin H. Johnson gentoo org> AuthorDate: Sun Apr 13 23:52:37 2014 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Apr 14 00:59:31 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=a8ade864 More device nodes. Signed-off-by: Robin H. Johnson 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