Fix '[: /dev/md: unknown operand' for LiveCD boots.
authorTim Yamin <plasmaroo@gentoo.org>
Thu, 14 Jul 2005 21:49:19 +0000 (21:49 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Thu, 14 Jul 2005 21:49:19 +0000 (21:49 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@264 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts

index 6aa38819cdac4b1a581f2fcf0efbb848809f257e..be1bc72f9f1c1abf5b71d0b7a20889115f3ce726 100644 (file)
@@ -510,6 +510,8 @@ cdupdate() {
 }
 
 setup_md_device() {
+       [ -z "${REAL_ROOT}" ] && return # LiveCD
+
        if [ `echo ${REAL_ROOT}|sed -e 's#\(/dev/md\)[[:digit:]]\+#\1#'` = "/dev/md" ]
        then
                good_msg 'Detected real_root as a md device. Setting up the device node...'