From 6a1ef5e951b68cc329104d0c7a45db3a3dfab32a Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Fri, 26 Mar 2010 16:11:46 +0100
Subject: [PATCH] Do not try to umount root fs

During the last revamp of the shutdown code I forgot the root
fs, and as the logic became inverted we always tried to umount
it.

References: bnc#581259

Signed-off-by: Hannes Reinecke <hare@suse.de>

diff --git a/etc/initd/initd.suse b/etc/initd/initd.suse
index 8bc8a5b..d811e07 100644
--- a/etc/initd/initd.suse
+++ b/etc/initd/initd.suse
@@ -192,6 +192,7 @@ iscsi_check_mounts()
 
     cat /proc/mounts | sed -ne '/^\/dev\/.*/p' | while read d m t o x; do 
 	if [ "$m" = "/" ] ; then 
+	    echo rootfs
 	    continue;
 	fi
 	if [ -L "$d" ] ; then
@@ -250,6 +251,10 @@ iscsi_check_target()
 	    mnt=$(iscsi_check_mounts $dev)
 	    [ -z "$mnt" ] && continue
 	    case "$mnt" in
+		rootfs)
+		    echo $mnt
+		    return 1
+		    ;;
 		dm-*)
 		    echo $mnt
 		    return 1
