]> git.proxmox.com Git - grub2.git/commitdiff
Add support for ext2 root on GNU/kFreeBSD (thanks, Aurelien Jarno;
authorColin Watson <cjwatson@debian.org>
Thu, 19 Aug 2010 17:20:37 +0000 (18:20 +0100)
committerColin Watson <cjwatson@debian.org>
Thu, 19 Aug 2010 17:20:37 +0000 (18:20 +0100)
closes: #593467).

debian/changelog
debian/patches/kfreebsd_ext2.patch [new file with mode: 0644]
debian/patches/series

index 37ccf113f26c18335d53a11705fc0c94bc2077d8..3d59b7aadd4ccdaa231a55ca9ca7b568c08bbca2 100644 (file)
@@ -16,6 +16,8 @@ grub2 (1.98+20100804-3) UNRELEASED; urgency=low
   * Escape single quotes when removing them from $mode in zz-update-grub, so
     that this works when /bin/sh is bash (thanks, Will Dyson; closes:
     #593242).
+  * Add support for ext2 root on GNU/kFreeBSD (thanks, Aurelien Jarno;
+    closes: #593467).
 
  -- Robert Millan <rmh@debian.org>  Mon, 16 Aug 2010 15:17:13 +0200
 
diff --git a/debian/patches/kfreebsd_ext2.patch b/debian/patches/kfreebsd_ext2.patch
new file mode 100644 (file)
index 0000000..8d66bff
--- /dev/null
@@ -0,0 +1,33 @@
+Description: Add support for ext2 root on GNU/kFreeBSD
+Author: Aurelien Jarno <aurel32@debian.org>
+Bug-Debian: http://bugs.debian.org/593467
+Forwarded: http://lists.gnu.org/archive/html/grub-devel/2010-08/msg00038.html
+Last-Update: 2010-08-19
+
+Index: b/util/grub.d/10_kfreebsd.in
+===================================================================
+--- a/util/grub.d/10_kfreebsd.in
++++ b/util/grub.d/10_kfreebsd.in
+@@ -75,6 +75,14 @@
+   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
++    ;;
+     zfs)
+       test -e "${module_dir}/opensolaris.ko"
+       test -e "${module_dir}/zfs.ko"
+@@ -121,6 +129,7 @@
+   case ${GRUB_FS} in
+     ufs1 | ufs2)        kfreebsd_fs=ufs ;;
++    ext2)               kfreebsd_fs=ext2fs ;;
+     *)                  kfreebsd_fs=${GRUB_FS} ;;
+   esac
index 79d9472a131b11b2ca9d3405f1741ca44d562610..9f008d2b660793d6ad3e4a992a996f63fe980d8b 100644 (file)
@@ -14,3 +14,4 @@ zfs_fix_chroot.patch
 zfs_fix_segfault.patch
 zfs_fix_pathname.patch
 zfs_fix_label_arg.patch
+kfreebsd_ext2.patch