nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
Blob Blame History Raw
From bd049427e99ec99447426c2264a432f08b156e4c Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Tue, 11 Dec 2012 17:40:35 +0100
Subject: [PATCH 069/482] 	* util/grub.d/20_linux_xen.in: Addmissing
 assignment to machine. 	Reported by: Eriks Latosheks <foresterlv>.

---
 ChangeLog                   | 5 +++++
 util/grub.d/20_linux_xen.in | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 04ffaec..9104a46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+	* util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
+	Reported by: Eriks Latosheks <foresterlv>.
+
 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
 	* docs/grub.texi (Network): Update instructions on generating netboot
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
index d4d0110..ac05ee4 100644
--- a/util/grub.d/20_linux_xen.in
+++ b/util/grub.d/20_linux_xen.in
@@ -174,6 +174,8 @@ boot_device_id=
 
 title_correction_code=
 
+machine=`uname -m`
+
 case "$machine" in
     i?86) GENKERNEL_ARCH="x86" ;;
     mips|mips64) GENKERNEL_ARCH="mips" ;;
-- 
1.8.2.1