refactor: harden diagnostics and consolidate runtime code
This commit is contained in:
@@ -85,6 +85,14 @@ render_bootloader_template() {
|
||||
initrd_placeholder="$7"
|
||||
initrd="$8"
|
||||
|
||||
for required_placeholder in \
|
||||
"@VERSION@" \
|
||||
"$kernel_placeholder" \
|
||||
"@APPEND_LIVE@" \
|
||||
"$initrd_placeholder"; do
|
||||
require_template_placeholder "$template" "$required_placeholder" || return 1
|
||||
done
|
||||
|
||||
BEE_RENDER_VERSION="$version" \
|
||||
BEE_RENDER_KERNEL_PLACEHOLDER="$kernel_placeholder" \
|
||||
BEE_RENDER_KERNEL="$kernel" \
|
||||
|
||||
Reference in New Issue
Block a user