|
|
f731ee |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
f731ee |
From: William Jon McCann <william.jon.mccann@gmail.com>
|
|
|
f731ee |
Date: Wed, 15 May 2013 13:30:20 -0400
|
|
|
f731ee |
Subject: [PATCH] Don't write messages to the screen
|
|
|
f731ee |
|
|
|
f731ee |
Writing messages to the screen before the menus or boot splash
|
|
|
f731ee |
happens so quickly it looks like something is wrong and isn't
|
|
|
f731ee |
very appealing.
|
|
|
f731ee |
---
|
|
|
f731ee |
grub-core/gettext/gettext.c | 15 ---------------
|
|
|
f731ee |
grub-core/kern/main.c | 5 -----
|
|
|
f731ee |
grub-core/boot/i386/pc/boot.S | 3 ---
|
|
|
f731ee |
grub-core/boot/i386/pc/diskboot.S | 5 -----
|
|
|
f731ee |
util/grub.d/10_linux.in | 7 -------
|
|
|
f731ee |
5 files changed, 35 deletions(-)
|
|
|
f731ee |
|
|
|
f731ee |
diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c
|
|
|
f731ee |
index 4880cefe3f8..1e5c21d7ef2 100644
|
|
|
f731ee |
--- a/grub-core/gettext/gettext.c
|
|
|
f731ee |
+++ b/grub-core/gettext/gettext.c
|
|
|
f731ee |
@@ -437,13 +437,9 @@ grub_gettext_env_write_lang (struct grub_env_var *var
|
|
|
f731ee |
grub_err_t err;
|
|
|
f731ee |
err = grub_gettext_init_ext (&main_context, val, grub_env_get ("locale_dir"),
|
|
|
f731ee |
grub_env_get ("prefix"));
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
|
|
|
f731ee |
err = grub_gettext_init_ext (&secondary_context, val,
|
|
|
f731ee |
grub_env_get ("secondary_locale_dir"), 0);
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
|
|
|
f731ee |
return grub_strdup (val);
|
|
|
f731ee |
}
|
|
|
f731ee |
@@ -455,8 +451,6 @@ grub_gettext_reread_prefix (const char *val)
|
|
|
f731ee |
err = grub_gettext_init_ext (&main_context, grub_env_get ("lang"),
|
|
|
f731ee |
grub_env_get ("locale_dir"),
|
|
|
f731ee |
val);
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
}
|
|
|
f731ee |
|
|
|
f731ee |
static char *
|
|
|
f731ee |
@@ -466,8 +460,6 @@ read_main (struct grub_env_var *var
|
|
|
f731ee |
grub_err_t err;
|
|
|
f731ee |
err = grub_gettext_init_ext (&main_context, grub_env_get ("lang"), val,
|
|
|
f731ee |
grub_env_get ("prefix"));
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
return grub_strdup (val);
|
|
|
f731ee |
}
|
|
|
f731ee |
|
|
|
f731ee |
@@ -478,9 +470,6 @@ read_secondary (struct grub_env_var *var
|
|
|
f731ee |
grub_err_t err;
|
|
|
f731ee |
err = grub_gettext_init_ext (&secondary_context, grub_env_get ("lang"), val,
|
|
|
f731ee |
0);
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
-
|
|
|
f731ee |
return grub_strdup (val);
|
|
|
f731ee |
}
|
|
|
f731ee |
|
|
|
f731ee |
@@ -506,12 +495,8 @@ GRUB_MOD_INIT (gettext)
|
|
|
f731ee |
|
|
|
f731ee |
err = grub_gettext_init_ext (&main_context, lang, grub_env_get ("locale_dir"),
|
|
|
f731ee |
grub_env_get ("prefix"));
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
err = grub_gettext_init_ext (&secondary_context, lang,
|
|
|
f731ee |
grub_env_get ("secondary_locale_dir"), 0);
|
|
|
f731ee |
- if (err)
|
|
|
f731ee |
- grub_print_error ();
|
|
|
f731ee |
|
|
|
f731ee |
grub_register_variable_hook ("locale_dir", NULL, read_main);
|
|
|
f731ee |
grub_register_variable_hook ("secondary_locale_dir", NULL, read_secondary);
|
|
|
f731ee |
diff --git a/grub-core/kern/main.c b/grub-core/kern/main.c
|
|
|
f731ee |
index 8ab7794c47b..da47b18b50e 100644
|
|
|
f731ee |
--- a/grub-core/kern/main.c
|
|
|
f731ee |
+++ b/grub-core/kern/main.c
|
|
|
f731ee |
@@ -268,11 +268,6 @@ grub_main (void)
|
|
|
f731ee |
|
|
|
f731ee |
grub_boot_time ("After machine init.");
|
|
|
f731ee |
|
|
|
f731ee |
- /* Hello. */
|
|
|
f731ee |
- grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
|
|
|
f731ee |
- grub_printf ("Welcome to GRUB!\n\n");
|
|
|
f731ee |
- grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
|
|
|
f731ee |
-
|
|
|
f731ee |
grub_load_config ();
|
|
|
f731ee |
|
|
|
f731ee |
grub_boot_time ("Before loading embedded modules.");
|
|
|
f731ee |
diff --git a/grub-core/boot/i386/pc/boot.S b/grub-core/boot/i386/pc/boot.S
|
|
|
f731ee |
index b4975e2d029..432a472d529 100644
|
|
|
f731ee |
--- a/grub-core/boot/i386/pc/boot.S
|
|
|
f731ee |
+++ b/grub-core/boot/i386/pc/boot.S
|
|
|
f731ee |
@@ -249,9 +249,6 @@ real_start:
|
|
|
f731ee |
/* save drive reference first thing! */
|
|
|
f731ee |
pushw %dx
|
|
|
f731ee |
|
|
|
f731ee |
- /* print a notification message on the screen */
|
|
|
f731ee |
- MSG(notification_string)
|
|
|
f731ee |
-
|
|
|
f731ee |
/* set %si to the disk address packet */
|
|
|
f731ee |
movw $disk_address_packet, %si
|
|
|
f731ee |
|
|
|
f731ee |
diff --git a/grub-core/boot/i386/pc/diskboot.S b/grub-core/boot/i386/pc/diskboot.S
|
|
|
f731ee |
index d030a14c916..a494d029c61 100644
|
|
|
f731ee |
--- a/grub-core/boot/i386/pc/diskboot.S
|
|
|
f731ee |
+++ b/grub-core/boot/i386/pc/diskboot.S
|
|
|
f731ee |
@@ -50,11 +50,6 @@ _start:
|
|
|
f731ee |
/* save drive reference first thing! */
|
|
|
f731ee |
pushw %dx
|
|
|
f731ee |
|
|
|
f731ee |
- /* print a notification message on the screen */
|
|
|
f731ee |
- pushw %si
|
|
|
f731ee |
- MSG(notification_string)
|
|
|
f731ee |
- popw %si
|
|
|
f731ee |
-
|
|
|
f731ee |
/* this sets up for the first run through "bootloop" */
|
|
|
f731ee |
movw $LOCAL(firstlist), %di
|
|
|
f731ee |
|
|
|
f731ee |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
|
f731ee |
index ad34cc02d36..e762e1f4e37 100644
|
|
|
f731ee |
--- a/util/grub.d/10_linux.in
|
|
|
f731ee |
+++ b/util/grub.d/10_linux.in
|
|
|
f731ee |
@@ -126,29 +126,22 @@ linux_entry ()
|
|
|
f731ee |
fi
|
|
|
f731ee |
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f731ee |
fi
|
|
|
f731ee |
- message="$(gettext_printf "Loading Linux %s ..." ${version})"
|
|
|
f731ee |
if [ -d /sys/firmware/efi ]; then
|
|
|
f731ee |
sed "s/^/$submenu_indentation/" << EOF
|
|
|
f731ee |
- echo '$(echo "$message" | grub_quote)'
|
|
|
f731ee |
linuxefi ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
f731ee |
EOF
|
|
|
f731ee |
else
|
|
|
f731ee |
sed "s/^/$submenu_indentation/" << EOF
|
|
|
f731ee |
- echo '$(echo "$message" | grub_quote)'
|
|
|
f731ee |
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
f731ee |
EOF
|
|
|
f731ee |
fi
|
|
|
f731ee |
if test -n "${initrd}" ; then
|
|
|
f731ee |
- # TRANSLATORS: ramdisk isn't identifier. Should be translated.
|
|
|
f731ee |
- message="$(gettext_printf "Loading initial ramdisk ...")"
|
|
|
f731ee |
if [ -d /sys/firmware/efi ]; then
|
|
|
f731ee |
sed "s/^/$submenu_indentation/" << EOF
|
|
|
f731ee |
- echo '$(echo "$message" | grub_quote)'
|
|
|
f731ee |
initrdefi ${rel_dirname}/${initrd}
|
|
|
f731ee |
EOF
|
|
|
f731ee |
else
|
|
|
f731ee |
sed "s/^/$submenu_indentation/" << EOF
|
|
|
f731ee |
- echo '$message'
|
|
|
f731ee |
initrd ${rel_dirname}/${initrd}
|
|
|
f731ee |
EOF
|
|
|
f731ee |
fi
|