$NetBSD$

--- stage2/disk_io.c.orig	2004-05-23 18:35:24.000000000 +0200
+++ stage2/disk_io.c	2006-09-18 01:12:19.000000000 +0200
@@ -632,6 +632,15 @@
 		bsd_evil_hack = 4;
 #endif /* ! STAGE1_5 */
 	      
+	      if (BSD_PART_TYPE(buf, i) == FS_RAID)
+		{
+		  /* found a RAID partition, restart inside that */
+		  /* *offset += RF_PROTECTED_SECTORS; */
+		  *start += RF_PROTECTED_SECTORS;
+		  *len -= RF_PROTECTED_SECTORS;
+		  /* *partition = (*partition & 0xFF00FF) | (0xFF << 8); */
+		  /* return next_bsd_partition(); */
+		}
 	      return 1;
 	    }
 	}
