[RHEL 7] Cast the blame appropriately when the kernel refuses efivars changes.

Vratislav Podzimek vpodzime at redhat.com
Tue Feb 4 07:34:46 UTC 2014


On Mon, 2014-02-03 at 11:39 -0500, Peter Jones wrote:
> There's nothing anaconda can do if the underlying API does not work, so
> explain in the traceback that this isn't anaconda's fault.
> 
> Related: rhbz#959866
> Related: rhbz#1009680
> 
> Signed-off-by: Peter Jones <pjones at redhat.com>
> ---
>  pyanaconda/bootloader.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index eea75ab..c313b6a 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -1679,7 +1679,7 @@ class EFIGRUB(GRUB2):
>                  rc = self.efibootmgr("-b", slot_id, "-B",
>                                       root=ROOT_PATH)
>                  if rc:
> -                    raise BootLoaderError("failed to remove old efi boot entry")
> +                    raise BootLoaderError("failed to remove old efi boot entry.  This is most likely a kernel bug.")
>  
>      @property
>      def efi_dir_as_efifs_dir(self):
> @@ -1703,7 +1703,7 @@ class EFIGRUB(GRUB2):
>                               self.efi_dir_as_efifs_dir + "\\shim.efi",
>                               root=ROOT_PATH)
>          if rc:
> -            raise BootLoaderError("failed to set new efi boot target")
> +            raise BootLoaderError("failed to set new efi boot target. This is most likely a kernel bug.")
>  
>      def install(self):
>          if not flags.leavebootorder:
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list