Fix cp /dev/tty1 error message
authorEric Edgar <rocket@gentoo.org>
Thu, 28 Jul 2005 15:57:37 +0000 (15:57 +0000)
committerEric Edgar <rocket@gentoo.org>
Thu, 28 Jul 2005 15:57:37 +0000 (15:57 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@283 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_initrd.sh
generic/linuxrc

index 3558be951b1ce123ab7f518df6310f1ebd0895b2..402035fc63d54ed499603df569b8f4d654b7d5ec 100644 (file)
@@ -56,7 +56,7 @@ create_base_initrd_sys() {
        cd ${TEMP}/initrd-temp/dev
        MAKEDEV std
        MAKEDEV console
-
+       
        if [ "${DISKLABEL}" -eq '1' ]; then
                cp "${BLKID_BINCACHE}" "${TEMP}/initrd-temp/bin/blkid.bz2" ||
                        gen_die 'Could not copy blkid from bincache!'
index a0b59af02c032afa8bbf6bd2299870fa1d458891..ceaac22485675b9085d13952db456e4538844c61 100644 (file)
@@ -236,7 +236,13 @@ then
        done
        cp /dev/null ${NEW_ROOT}/dev
        cp /dev/console ${NEW_ROOT}/dev
-       cp /dev/tty1 ${NEW_ROOT}/dev
+
+       # Required for gensplash to work.  Not an issue with the initrd as this device isnt created there and is not needed.
+       if [ -e /dev/tty1 ]
+       then
+           cp /dev/tty1 ${NEW_ROOT}/dev
+       fi
+
        sdelay
 
        [ "${REAL_ROOT}" = "/dev/nfs" ] || bootstrapCD