Switch from systemd-boot to efistub

This commit is contained in:
Marko Korhonen 2021-02-18 17:47:10 +02:00
parent 24dd62e0aa
commit 2775d41830
9 changed files with 25 additions and 56 deletions

14
efistub/update.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# remove old entries
for bootentry in $(efibootmgr | head -n 3 | tail -n 1 | cut -d' ' -f2- | sed 's/,/\n/g'); do
sudo efibootmgr -qBb $bootentry
done
# add all entries back
for bootscript in *.efi; do
./$bootscript
done
# set bootorder
sudo efibootmgr --bootorder 0000,0001