dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0084-util-grub.d-10_kfreebsd.in-Correct-the-patch-to-zpoo.patch

f96e0b
From aaf55113bb7174787ffe8aa6878086943238a63e Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Thu, 3 Jan 2013 23:19:19 +0100
f96e0b
Subject: [PATCH 084/482] 	* util/grub.d/10_kfreebsd.in: Correct the
f96e0b
 patch to zpool.cache as it's 	always in /boot/zfs. 	Reported by: Yuta
f96e0b
 Satoh.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                  | 6 ++++++
f96e0b
 util/grub.d/10_kfreebsd.in | 4 ++--
f96e0b
 2 files changed, 8 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 936af2f..a28a1f7 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,9 @@
f96e0b
+2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
+	* util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
f96e0b
+	always in /boot/zfs.
f96e0b
+	Reported by: Yuta Satoh.
f96e0b
+
f96e0b
 2013-01-03  Yuta Satoh  <nigoro>
f96e0b
 
f96e0b
 	* util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
f96e0b
diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
f96e0b
index 2a48b52..c123ceb 100644
f96e0b
--- a/util/grub.d/10_kfreebsd.in
f96e0b
+++ b/util/grub.d/10_kfreebsd.in
f96e0b
@@ -122,10 +122,10 @@ EOF
f96e0b
     zfs)
f96e0b
       load_kfreebsd_module opensolaris false
f96e0b
 
f96e0b
-      ls "${dirname}/zfs/zpool.cache" > /dev/null
f96e0b
+      ls "/boot/zfs/zpool.cache" > /dev/null
f96e0b
       printf '%s\n' "${prepare_boot_cache}"
f96e0b
       sed "s/^/$submenu_indentation/" << EOF
f96e0b
-	kfreebsd_module		${rel_dirname}/zfs/zpool.cache type=/boot/zfs/zpool.cache
f96e0b
+	kfreebsd_module		$(make_system_path_relative_to_its_root /boot)/zfs/zpool.cache type=/boot/zfs/zpool.cache
f96e0b
 EOF
f96e0b
     ;;
f96e0b
   esac
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b