Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Fix the path for splash.xpm.gz in grub.conf (http://www.linux-archive.org/debian-kernel/581370-fix-path-splash-xpm-gz-grub-conf.html)

"Brian C. Lane" 09-28-2011 11:58 PM

Fix the path for splash.xpm.gz in grub.conf
 
From: Peter Jones <pjones@redhat.com>

It's always in /boot/grub/splash.xpm.gz because that's where the package
puts it. It's not always in the config dir.
---
pyanaconda/bootloader.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index efbf115..10c0ca0 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1162,14 +1162,14 @@ class GRUB(BootLoader):

if not flags.serial:
splash = "splash.xpm.gz"
- splash_path = os.path.normpath("%s%s/%s" % (install_root,
- self.config_dir,
- splash))
+ splash_path = os.path.normpath("%s/boot/grub/%s" % (install_root,
+ splash))
+ log.debug("splash_path = %s" % (splash_path))
if os.access(splash_path, os.R_OK):
grub_root_grub_name = self.grub_device_name(self.stage2_device)
- config.write("splashimage=%s/%s/%s
" % (grub_root_grub_name,
- self.grub_config_dir,
- splash))
+ config.write("splashimage=%s%s/grub/%s
" % (grub_root_grub_name,
+ self.boot_prefix,
+ splash))
config.write("hiddenmenu
")

self.write_config_password(config)
--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

David Lehman 09-29-2011 01:59 AM

Fix the path for splash.xpm.gz in grub.conf
 
On Wed, 2011-09-28 at 16:58 -0700, Brian C. Lane wrote:
> From: Peter Jones <pjones@redhat.com>
>
> It's always in /boot/grub/splash.xpm.gz because that's where the package
> puts it. It's not always in the config dir.

Ack. I resisted the hardcoding of grub/ before, but if that path is
dictated by the logos package then it's probably not worth the extra
code to avoid.

> ---
> pyanaconda/bootloader.py | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index efbf115..10c0ca0 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -1162,14 +1162,14 @@ class GRUB(BootLoader):
>
> if not flags.serial:
> splash = "splash.xpm.gz"
> - splash_path = os.path.normpath("%s%s/%s" % (install_root,
> - self.config_dir,
> - splash))
> + splash_path = os.path.normpath("%s/boot/grub/%s" % (install_root,
> + splash))
> + log.debug("splash_path = %s" % (splash_path))
> if os.access(splash_path, os.R_OK):
> grub_root_grub_name = self.grub_device_name(self.stage2_device)
> - config.write("splashimage=%s/%s/%s
" % (grub_root_grub_name,
> - self.grub_config_dir,
> - splash))
> + config.write("splashimage=%s%s/grub/%s
" % (grub_root_grub_name,
> + self.boot_prefix,
> + splash))
> config.write("hiddenmenu
")
>
> self.write_config_password(config)


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 12:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.