User Tools

Site Tools


boot:prevent_uefi_boot_issues

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
boot:prevent_uefi_boot_issues [2017/04/04 10:01] – created peterboot:prevent_uefi_boot_issues [2019/11/25 22:46] (current) – removed peter
Line 1: Line 1:
-====== Boot - Prevent UEFI Boot Issues ====== 
  
-If you installed on a UEFI system you may want to run the following commands before booting into your new installation: 
- 
- 
-<code bash> 
-efi="/target/boot/efi/EFI"; \ 
-if [[ -e "${efi}/boot" ]]; then \ 
-  echo "Backup:"; \ 
-  mv -v "${efi}/boot/" "${efi}/boot-bak-$(lsb_release -cs)"; \ 
-fi; \ 
-echo "Copy:"; \ 
-cp -va "${efi}/ubuntu" "${efi}/boot"; \ 
-arch="$(ls -1 {efi}/ubuntu/shim*.efi)"; \ 
-arch="${arch#*shim}"; \ 
-arch="${arch%.efi}"; \ 
-cp -v "${efi}/boot/shim${arch}.efi" "${efi}/boot/boot${arch}.efi"; 
-</code> 
- 
-This will copy Ubuntu's boot files to the default bootloader location and backup any previously existing files.  By doing this you save yourself from headaches caused by non-standards compliant behavior of some UEFI firmwares found on VirtualBox as well as some older HP, Toshiba, Sony and other devices.   
- 
-[[https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1366546|Related bug report]]. 
boot/prevent_uefi_boot_issues.1491300117.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki