All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Skip boot-device set for powerpc-ieee1275
@ 2012-05-29 18:28 Paulo Flabiano Smorigo
  2012-05-29 18:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Paulo Flabiano Smorigo @ 2012-05-29 18:28 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

This patch is to skip the boot-device set for powerpc-ieee1275.  
Changing it could be problematic in some cases.
The choice of the boot device can be done by the SMS menu of the firmware.

-- 
Paulo Flabiano Smorigo
Linux Technology Center Brazil Software Engineer
IBM Systems & Technology Group
pfsmorigo@br.ibm.com / pfsmorigo@linux.vnet.ibm.com
irc: pfsmorigo

[-- Attachment #2: skip_boot-device_set_for_powerpc-ieee1275.patch --]
[-- Type: text/x-patch, Size: 1323 bytes --]

=== modified file 'util/grub-install.in'
--- util/grub-install.in	2012-05-11 19:07:39 +0000
+++ util/grub-install.in	2012-05-29 18:22:55 +0000
@@ -799,14 +799,16 @@
 	    }
 	fi
 
-	"$nvsetenv" boot-device "$boot_device" || {
-	    # TRANSLATORS: The %s will be replaced by an external program name.
-	    gettext_printf "\`%s' failed.\n" "$nvsetenv" 1>&2
-	    gettext "You will have to set \`boot-device' variable manually.  At the IEEE1275 prompt, type:" 1>&2
-	    echo 1>&2
-	    echo "  setenv boot-device $boot_device" 1>&2
-	    exit 1
-	}
+        if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]; then
+    	    "$nvsetenv" boot-device "$boot_device" || {
+	        # TRANSLATORS: The %s will be replaced by an external program name.
+                gettext_printf "\`%s' failed.\n" "$nvsetenv" 1>&2
+                gettext "You will have to set \`boot-device' variable manually.  At the IEEE1275 prompt, type:" 1>&2
+                echo 1>&2
+                echo "  setenv boot-device $boot_device" 1>&2
+                exit 1
+            }
+        fi
     fi
 elif [ x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = xmips-arc ]; then
     dvhtool -d "${install_device}" --unix-to-vh "{grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/core.${imgext}" grub


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-29 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 18:28 [PATCH] Skip boot-device set for powerpc-ieee1275 Paulo Flabiano Smorigo
2012-05-29 18:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-05-29 18:53   ` Lennart Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.