Check content of $REAL_ROOT/dev after we are done with it
authorPeter Hjalmarsson <xake@rymdraket.net>
Wed, 8 Jun 2011 15:49:23 +0000 (17:49 +0200)
committerPeter Hjalmarsson <xake@rymdraket.net>
Wed, 8 Jun 2011 15:49:23 +0000 (17:49 +0200)
Removes error message about missing /dev/console and /dev/null

defaults/linuxrc

index ad6d7800457758cd66584a28880901248f61d16a..57f26fddc4bfec8f1c3590e4bfc915f2bb71602b 100755 (executable)
@@ -725,13 +725,6 @@ fi
 verbose_kmsg
 
 echo -ne "${GOOD}>>${NORMAL}${BOLD} Booting (initramfs)${NORMAL}"
-if [ ! -e "${CHROOT}/dev/console" ] || [ ! -e "${CHROOT}/dev/null" ]
-then
-       echo -ne "${BAD}>>${NORMAL}${BOLD} ERROR: your real /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 real /dev is missing tty1, which is required for splash${NORMAL}"
-fi
 
 cd "${CHROOT}"
 mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null
@@ -750,6 +743,14 @@ do
        fi
 done
 
+if [ ! -e "${CHROOT}/dev/console" ] || [ ! -e "${CHROOT}/dev/null" ]
+then
+       echo -ne "${BAD}>>${NORMAL}${BOLD} ERROR: your real /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 real /dev is missing tty1, which is required for splash${NORMAL}"
+fi
+
 echo -e "${BOLD}.${NORMAL}"
 
 exec /sbin/switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}"