Merge pull request 'refs #2218 removes efi partition hardcoded in templates' (#15) from update-template-disk into main
ogboot/pipeline/head This commit looks good
Details
ogboot/pipeline/head This commit looks good
Details
Reviewed-on: #15main
commit
b5c20a6a3b
|
@ -1,5 +1,6 @@
|
|||
if ! search --file --set root /Part-__DISK__-__PART__; then
|
||||
search --file --set root /EFI/Part-__DISK__-__PART__/Boot/ogloader.efi
|
||||
fi
|
||||
chainloader (hd0,gpt1)/EFI/Part-__DISK__-__PART__/Boot/ogloader.efi
|
||||
search --file --set rootEFI /EFI/Part-__DISK__-__PART__/Boot/ogloader.efi
|
||||
chainloader ($rootEFI)/EFI/Part-__DISK__-__PART__/Boot/ogloader.efi
|
||||
boot
|
|
@ -22,23 +22,30 @@ if [ "$rootRefind" != "" ]; then
|
|||
}
|
||||
fi
|
||||
|
||||
echo "Searching Part-01-02"
|
||||
search --file --set rootP2 /EFI/Part-01-02/Boot/ogloader.efi
|
||||
if ! search --file --set rootP2 /Part-01-02; then
|
||||
search --file --set rootP2 /EFI/Part-01-02/Boot/ogloader.efi
|
||||
fi
|
||||
search --file --set rootEFI /EFI/Part-01-02/Boot/ogloader.efi
|
||||
|
||||
if [ "$rootP2" != "" ]; then
|
||||
set detectado='si'
|
||||
menuentry "Part-01-02" {
|
||||
root="$rootP2"
|
||||
chainloader /EFI/Part-01-02/Boot/ogloader.efi
|
||||
chainloader ($rootEFI)/EFI/Part-01-02/Boot/ogloader.efi
|
||||
}
|
||||
fi
|
||||
|
||||
echo "Searching Part-01-03"
|
||||
search --file --set rootP3 /EFI/Part-01-03/Boot/ogloader.efi
|
||||
if [ "$rootP3" != "" ]; then
|
||||
if ! search --file --set rootP3 /Part-01-03; then
|
||||
search --file --set rootP3 /EFI/Part-01-03/Boot/ogloader.efi
|
||||
fi
|
||||
|
||||
search --file --set rootEFI /EFI/Part-01-03/Boot/ogloader.efi
|
||||
|
||||
if [ "$rootEFI" != "" ]; then
|
||||
set detectado='si'
|
||||
menuentry "Part-01-03" {
|
||||
root="$rootP3"
|
||||
chainloader /EFI/Part-01-03/Boot/ogloader.efi
|
||||
chainloader ($rootEFI)/EFI/Part-01-03/Boot/ogloader.efi
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue