Skip to content

Instantly share code, notes, and snippets.

@yellowgh0st
Created December 3, 2017 10:34
Show Gist options
  • Save yellowgh0st/2041a35eec55d3d101d1da2bf28b41a6 to your computer and use it in GitHub Desktop.
Save yellowgh0st/2041a35eec55d3d101d1da2bf28b41a6 to your computer and use it in GitHub Desktop.
grub2: patch that removes welcome message
--- a/grub-core/kern/main.c
+++ b/grub-core/kern/main.c
@@ -207,7 +207,7 @@
if (device)
{
char *prefix_set;
-
+
prefix_set = grub_xasprintf ("(%s)%s", device, path ? : "");
if (prefix_set)
{
@@ -271,7 +271,6 @@
/* Hello. */
grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
- grub_printf ("Welcome to GRUB!\n\n");
grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
grub_load_config ();
@@ -282,7 +281,7 @@
grub_register_exported_symbols ();
#ifdef GRUB_LINKER_HAVE_INIT
grub_arch_dl_init_linker ();
-#endif
+#endif
grub_load_modules ();
grub_boot_time ("After loading embedded modules.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment