clonedisk.sh: fix efibootmgr installation
This commit is contained in:
parent
92ed642dde
commit
767f08b9d9
|
@ -167,11 +167,14 @@ rmdir boot
|
|||
|
||||
if ! [[ $UPDATE ]]; then
|
||||
for i in FED1 FED2 FED3 FED4; do
|
||||
efibootmgr -B -b $i
|
||||
efibootmgr -B -b $i || :
|
||||
done
|
||||
efibootmgr -C -b FED1 -d ${OUT_DEV} -p 1 -L "FedoraBook 1" -l '\efi\fedorabook\1.efi'
|
||||
efibootmgr -C -b FED2 -d ${OUT_DEV} -p 1 -L "FedoraBook 2" -l '\efi\fedorabook\2.efi'
|
||||
efibootmgr -C -b FED3 -d ${OUT_DEV} -p 1 -L "FedoraBook Old 1" -l '\efi\fedorabook\_1.efi'
|
||||
efibootmgr -C -b FED4 -d ${OUT_DEV} -p 1 -L "FedoraBook Old 2" -l '\efi\fedorabook\_2.efi'
|
||||
efibootmgr -o "FED1,FED2,FED3,FED4,$BOOT_ORDER"
|
||||
BOOT_ORDER=$(efibootmgr | grep BootOrder: | { read _ a; echo "$a"; })
|
||||
if ! [[ $BOOT_ORDER == *FED1* ]]; then
|
||||
efibootmgr -o "FED1,FED2,FED3,FED4,$BOOT_ORDER"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue