From abecbcfee6807c57d2b0dc0d060788e4be0f2b61f804b323af5b0c842adb3196 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Wed, 25 Sep 2013 08:08:02 +0000 Subject: [PATCH] Accepting request 200505 from home:gary_lin:branches:devel:openSUSE:Factory Create boot.csv in ESP for fallback.efi to restore the boot entry OBS-URL: https://build.opensuse.org/request/show/200505 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/shim?expand=0&rev=46 --- shim-install | 2 ++ shim.changes | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/shim-install b/shim-install index 32a9cca..250a3c9 100644 --- a/shim-install +++ b/shim-install @@ -180,6 +180,7 @@ if test "$clean" = "yes"; then rm -f "${efidir}/MokManager.efi" rm -f "${efidir}/grub.efi" rm -f "${efidir}/grub.cfg" + rm -f "${efidir}/boot.csv" efibootmgr="`which efibootmgr`" if test "$removable" = no && test -n "$bootloader_id" && test -n "$efibootmgr"; then # Delete old entries from the same distributor. @@ -194,6 +195,7 @@ fi cp "${source_dir}/shim.efi" "${efidir}" cp "${source_dir}/MokManager.efi" "${efidir}" cp "${source_dir}/grub.efi" "${efidir}" +echo "shim.efi,${bootloader_id}" | iconv -f ascii -t ucs2 > "${efidir}/boot.csv" grub_cfg_dirname=`dirname $grub_cfg` grub_cfg_basename=`basename $grub_cfg` diff --git a/shim.changes b/shim.changes index 980cab0..af8cd95 100644 --- a/shim.changes +++ b/shim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 25 07:17:54 UTC 2013 - glin@suse.com + +- Create boot.csv in ESP for fallback.efi to restore the boot entry + ------------------------------------------------------------------- Tue Sep 17 10:53:50 CEST 2013 - fcrozat@suse.com