Re: [PATCH] Fix the path for splash.xpm.gz in grub.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2011-09-28 at 16:58 -0700, Brian C. Lane wrote:
> From: Peter Jones <pjones@xxxxxxxxxx>
> 
> 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\n" % (grub_root_grub_name,
> -                                                         self.grub_config_dir,
> -                                                         splash))
> +                config.write("splashimage=%s%s/grub/%s\n" % (grub_root_grub_name,
> +                                                              self.boot_prefix,
> +                                                              splash))
>                  config.write("hiddenmenu\n")
>  
>          self.write_config_password(config)


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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux