From ff8c6a57030ff65345f52d8991eca222e948b33d Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Thu, 14 Jul 2005 21:49:19 +0000 Subject: [PATCH] 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 --- generic/initrd.scripts | 2 ++ 1 file changed, 2 insertions(+) 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...' -- 2.26.2