nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0083-util-grub.d-10_kfreebsd.in-Fix-improper-references-t.patch

f96e0b
From ce13f1ebba58c7d78dea2b63843eb77818baf566 Mon Sep 17 00:00:00 2001
f96e0b
From: Yuta Satoh <nigoro>
f96e0b
Date: Thu, 3 Jan 2013 23:06:07 +0100
f96e0b
Subject: [PATCH 083/482] 	* util/grub.d/10_kfreebsd.in: Fix improper
f96e0b
 references to grub-probe by 	${grub_probe}
f96e0b
f96e0b
---
f96e0b
 ChangeLog                  | 5 +++++
f96e0b
 util/grub.d/10_kfreebsd.in | 6 +++---
f96e0b
 2 files changed, 8 insertions(+), 3 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 087b5c3..936af2f 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2013-01-03  Yuta Satoh  <nigoro>
f96e0b
+
f96e0b
+	* util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
f96e0b
+	${grub_probe}
f96e0b
+
f96e0b
 2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	* configure.ac: Extend -Wno-trampolines to host.
f96e0b
diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
f96e0b
index 260dda8..2a48b52 100644
f96e0b
--- a/util/grub.d/10_kfreebsd.in
f96e0b
+++ b/util/grub.d/10_kfreebsd.in
f96e0b
@@ -54,7 +54,7 @@ load_kfreebsd_module ()
f96e0b
   fi
f96e0b
 
f96e0b
   if [ -z "${prepare_module_dir_cache}" ]; then
f96e0b
-    prepare_module_dir_cache="$(prepare_grub_to_access_device $(grub-probe -t device "${module_dir}") | grub_add_tab)"
f96e0b
+    prepare_module_dir_cache="$(prepare_grub_to_access_device $(${grub_probe} -t device "${module_dir}") | grub_add_tab)"
f96e0b
   fi
f96e0b
 
f96e0b
   printf '%s\n' "${prepare_module_dir_cache}"
f96e0b
@@ -112,7 +112,7 @@ EOF
f96e0b
 
f96e0b
   load_kfreebsd_module acpi true
f96e0b
 
f96e0b
-  for abstraction in dummy $(grub-probe -t abstraction --device ${GRUB_DEVICE}) ; do
f96e0b
+  for abstraction in dummy $(${grub_probe} -t abstraction --device ${GRUB_DEVICE}) ; do
f96e0b
     case $abstraction in
f96e0b
       lvm) load_kfreebsd_module geom_linux_lvm false ;;
f96e0b
     esac
f96e0b
@@ -179,7 +179,7 @@ while [ "x$list" != "x" ] ; do
f96e0b
   case ${GRUB_FS} in
f96e0b
     zfs)
f96e0b
 			# zpool name
f96e0b
-			kfreebsd_device=$(grub-probe -t fs_label --device ${GRUB_DEVICE})
f96e0b
+			kfreebsd_device=$(${grub_probe} -t fs_label --device ${GRUB_DEVICE})
f96e0b
 			# filesystem name (empty string for the main filesystem)
f96e0b
 			kfreebsd_device="${kfreebsd_device}$(${grub_mkrelpath} / | sed -e "s,/*@$,,")"
f96e0b
     ;;
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b