pkgsrc/sysutils/grub/patches/patch-ag
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

14 lines
510 B
Text

$NetBSD: patch-ag,v 1.3 2006/10/17 21:55:33 bad Exp $
--- stage2/fsys_ufs2.c.orig 2004-06-19 14:17:52.000000000 +0200
+++ stage2/fsys_ufs2.c
@@ -88,7 +88,8 @@ ufs2_mount (void)
type = 0;
if (! (((current_drive & 0x80) || (current_slice != 0))
- && ! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_BSDFFS)))
+ && ! (IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_BSDFFS)
+ || IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_RAID))))
{
for (i = 0; sblock_try[i] != -1; ++i)
{