Bug#593467: grub-pc: add support for root ext2/xfs on GNU/kFreeBSD

Aurelien Jarno aurel32 at debian.org
Wed Aug 18 13:07:57 UTC 2010


Package: grub-pc
Version: 1.98+20100804-2
Severity: minor
Tags: patch

Since GNU/kFreeBSD switch to grub as the default bootloader, it is 
almost possible to use an ext2 or xfs root filesystem. While there
is not a lot of interest in doing that, the patch to do it is quite
small. Could you please apply it in the next upload?

--- grub2-1.98+20100804.orig/util/grub.d/10_kfreebsd.in
+++ grub2-1.98+20100804/util/grub.d/10_kfreebsd.in
@@ -75,6 +75,22 @@
   fi
 
   case "${kfreebsd_fs}" in
+    ext2fs)
+      test -e "${module_dir}/ext2fs.ko"
+
+      printf '%s\n' "${prepare_module_dir_cache}"
+      cat << EOF
+	kfreebsd_module_elf	${module_dir_rel}/ext2fs.ko
+EOF
+    ;;
+    xfs)
+      test -e "${module_dir}/xfs.ko"
+
+      printf '%s\n' "${prepare_module_dir_cache}"
+      cat << EOF
+	kfreebsd_module_elf	${module_dir_rel}/xfs.ko
+EOF
+    ;;
     zfs)
       test -e "${module_dir}/opensolaris.ko"
       test -e "${module_dir}/zfs.ko"
@@ -121,6 +137,7 @@
 
   case ${GRUB_FS} in
     ufs1 | ufs2)        kfreebsd_fs=ufs ;;
+    ext2)               kfreebsd_fs=ext2fs ;;
     *)                  kfreebsd_fs=${GRUB_FS} ;;
   esac
 


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.35          Debian configuration management sy
ii  grub-common              1.98+20100804-2 GRand Unified Bootloader, version 
ii  libc0.1                  2.11.2-2        Embedded GNU C Library: Shared lib
ii  libnvpair0               8.1-3           OpenSolaris name-value pair librar
ii  libzfs0                  8.1-3           FreeBSD ZFS library
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.6      common files for the Debian Deskto

-- debconf information excluded





More information about the Pkg-grub-devel mailing list