pkgsrc/sysutils/grub/patches/patch-aa
bad 9fd8390500 stage2/pc_slice.h: add the missing disklabel FS_TYPE #defines and RF_PROTECTED_SECTORS.
stage2/disk_io.c: adjust the partition start and size by RF_PROTECTED sectors for partitions of type FS_RAID.
stage2/fsys_ffs.c: accept partitions of type FS_RAID as candidates for FFS, too.
stage2/fsys_ufs2.c: accept partitions of type FS_RAID as candidates for FFSv2, too.

This allows grub to directly boot from NetBSD RAID1 partitions the same way
as with the native bootloader.

Bump PKGREVISION.
2006-10-17 21:55:33 +00:00

18 lines
681 B
Text

$NetBSD: patch-aa,v 1.3 2006/10/17 21:55:33 bad Exp $
--- stage2/pc_slice.h.orig 2003-07-09 13:45:53.000000000 +0200
+++ stage2/pc_slice.h 2006-09-18 00:36:35.000000000 +0200
@@ -246,6 +246,13 @@
#define FS_HFS 15 /* Macintosh HFS */
#define FS_FILECORE 16 /* Acorn Filecore Filing System */
#define FS_EXT2FS 17 /* Linux Extended 2 file system */
+#define FS_NTFS 18 /* Windows/NT file system */
+#define FS_RAID 19 /* RAIDframe component */
+#define FS_CCD 20 /* concatenated disk component */
+#define FS_JFS2 21 /* IBM JFS2 */
+#define FS_APPLEUFS 22 /* Apple UFS */
+
+#define RF_PROTECTED_SECTORS 64 /* sectors reserved by RAIDframe */
#endif /* _PC_SLICE_H */