mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 15:29:35 +02:00
build/boot/roms stragglers: properly handle errors
there were a few missing err calls i actually went through all of lbmk and found no instances where err calls were missing except in build/boot/roms_helper Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -317,7 +317,8 @@ build_seabios_roms()
|
||||
else
|
||||
x=${corebootrom}
|
||||
y=${initmode}
|
||||
t=$(mkSeabiosRom "$x" "fallback/payload" "$y")
|
||||
t=$(mkSeabiosRom "$x" "fallback/payload" "$y") || \
|
||||
err "build_seabios_roms: cannot build tmprom"
|
||||
if [ "${initmode}" = "normal" ]; then
|
||||
newrompath="${romdir}/seabios_${board}_"
|
||||
newrompath="${newrompath}${initmode}.rom"
|
||||
@@ -347,7 +348,9 @@ build_grub_roms() {
|
||||
y=${initmode}
|
||||
if [ "${payload_grub_withseabios}" = "y" ] && \
|
||||
[ "${firstpayloadname}" = "grub" ]; then
|
||||
mv "$(mkSeabiosRom "${x}" "seabios.elf" "${y}")" "${tmprompath}"
|
||||
mv "$(mkSeabiosRom "${x}" "seabios.elf" "${y}")" \
|
||||
"${tmprompath}" || \
|
||||
err "build_grub_roms: cannot move tmp rom (seabios.elf)"
|
||||
elif [ "${payload_seabios_withgrub}" = "y" ] && \
|
||||
[ "${firstpayloadname}" != "grub" ]; then
|
||||
mv "$(mkSeabiosRom "${x}" "fallback/payload" "$y")" \
|
||||
|
||||
Reference in New Issue
Block a user