roms: reduce indentation in build_grub_roms()
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
383433d4f6
commit
a0da8fdef1
17
script/roms
17
script/roms
|
@ -228,16 +228,13 @@ build_grub_roms()
|
||||||
[ "$initmode" = "normal" ] && newrom="$romdir/${payload1}_" \
|
[ "$initmode" = "normal" ] && newrom="$romdir/${payload1}_" \
|
||||||
&& newrom="$newrom${board}_$initmode.rom"
|
&& newrom="$newrom${board}_$initmode.rom"
|
||||||
cprom cp "$tmprom" "$newrom"
|
cprom cp "$tmprom" "$newrom"
|
||||||
if [ "$payload_seabios_withgrub" = "y" ] && \
|
|
||||||
[ "$payload1" != "grub" ]; then
|
[ "$payload1" = "grub" ] && return 0
|
||||||
cbfs "$tmprom" "$grubdata/bootorder" bootorder raw
|
cbfs "$tmprom" "$grubdata/bootorder" bootorder raw
|
||||||
cprom cp "$tmprom" "${newrom%.rom}_grubfirst.rom"
|
cprom cp "$tmprom" "${newrom%.rom}_grubfirst.rom"
|
||||||
if [ "$payload_seabios_grubonly" = "y" ]; then
|
[ "$payload_seabios_grubonly" = "y" ] && return 0
|
||||||
x_ "$cbfstool" "$tmprom" add-int -i 0 \
|
x_ "$cbfstool" "$tmprom" add-int -i 0 -n etc/show-boot-menu
|
||||||
-n etc/show-boot-menu
|
cprom cp "$tmprom" "${newrom%.rom}_grubonly.rom"
|
||||||
cprom cp "$tmprom" "${newrom%.rom}_grubonly.rom"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# make a rom in /tmp/ and then print the path of that ROM
|
# make a rom in /tmp/ and then print the path of that ROM
|
||||||
|
|
Loading…
Reference in New Issue