From: Tim Yamin Date: Thu, 14 Jul 2005 21:49:19 +0000 (+0000) Subject: Fix '[: /dev/md: unknown operand' for LiveCD boots. X-Git-Tag: v3.4.10.902~488 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff8c6a57030ff65345f52d8991eca222e948b33d;p=genkernel.git Fix '[: /dev/md: unknown operand' for LiveCD boots. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@264 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/generic/initrd.scripts b/generic/initrd.scripts index 6aa3881..be1bc72 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -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...'