From 4187cff9f1e424e1937dffc004614e64d8cf1839 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Thu, 3 Apr 2008 22:02:47 +0000 Subject: [PATCH] Split up /dev node checks into console/null and tty1 git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@662 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- ChangeLog | 3 +++ generic/linuxrc | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d266c91..26bdc53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 03 Apr 2008; Andrew Gaffney generic/linuxrc: + Split up /dev node checks into console/null and tty1 + 02 Apr 2008; Andrew Gaffney generic/linuxrc: Remove initrd-specific code from linuxrc diff --git a/generic/linuxrc b/generic/linuxrc index 40de160..226f4c6 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -607,12 +607,13 @@ fi verbose_kmsg # There used to be some initrd/2.4 code here, but it's gone now : -if [ ! -e "${CHROOT}/dev/console" ] || [ ! -e "${CHROOT}/dev/null" ] \ -|| [ ! -e "${CHROOT}/dev/tty1" ] +echo -ne "${GOOD}>>${NORMAL}${BOLD} Booting (initramfs)${NORMAL}" +if [ ! -e "${CHROOT}/dev/console" ] || [ ! -e "${CHROOT}/dev/null" ] then - echo -ne "${BAD}>>${NORMAL}${BOLD} ERROR: /dev is broken!${NORMAL}" -else - echo -ne "${GOOD}>>${NORMAL}${BOLD} Booting (initramfs)${NORMAL}" + echo -ne "${BAD}>>${NORMAL}${BOLD} ERROR: your /dev is missing files required to boot (console and null)${NORMAL}" +elif [ -e /etc/initrd.splash -a ! -e "${CHROOT}/dev/tty1" ] +then + echo -ne "${BAD}>>${NORMAL}${BOLD} ERROR: your /dev is missing tty1, which is required for splash${NORMAL}" fi cd "${CHROOT}" -- 2.26.2