install_uefistub.sh: only install uefi-stub if it is one
This commit is contained in:
parent
fa07b039a3
commit
df3572d905
1 changed files with 7 additions and 2 deletions
|
@ -85,8 +85,13 @@ if [ "$(basename $img)" = "vmlinux" ] ; then
|
|||
else
|
||||
img_dest=vmlinuz
|
||||
fi
|
||||
updatever $img_dest "$img"
|
||||
updateefi $img_dest "$img"
|
||||
|
||||
if strings "$2" | grep -qi "EFI stub" ; then
|
||||
updateefi $img_dest "$img"
|
||||
else
|
||||
updatever $img_dest "$img"
|
||||
fi
|
||||
|
||||
updatever System.map "$map"
|
||||
|
||||
config=$(dirname "$map")
|
||||
|
|
Loading…
Add table
Reference in a new issue