From 8e0065ec64bf94c9adb605bef41d62244a44b233 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 24 Sep 2009 12:13:06 +0200 Subject: [PATCH] rc.sysinit: fixed case when root=... is not passed --- initramfs/etc_rc.d_rc.sysinit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initramfs/etc_rc.d_rc.sysinit.sh b/initramfs/etc_rc.d_rc.sysinit.sh index 10ee3ac..63ef3eb 100644 --- a/initramfs/etc_rc.d_rc.sysinit.sh +++ b/initramfs/etc_rc.d_rc.sysinit.sh @@ -54,7 +54,7 @@ UUID=*|LABEL=*) /dev/*) ;; *) - root="/dev/$root" + [ -z "$root" ] || root="/dev/$root" ;; esac