Fix GRUB bootloader lookup, eliminate duplicate recipe, harden recipe build
install-grub.sh now searches both recipes/core/bootloader/target and local/recipes/core/bootloader/target for the Redox bootloader artifact. The WIP grub recipe (recipes/wip/services/grub) is now a full directory symlink to local/recipes/core/grub instead of just recipe.toml, ensuring COOKBOOK_RECIPE resolves to a directory that contains grub.cfg. This also eliminates the duplicate recipe warning from the cookbook. The GRUB recipe now fails hard (exit 1) if grub.cfg is missing instead of just warning. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -118,7 +118,9 @@ if [ -f "${COOKBOOK_RECIPE}/grub.cfg" ]; then
|
||||
cp "${COOKBOOK_RECIPE}/grub.cfg" "${COOKBOOK_STAGE}/usr/lib/boot/grub.cfg"
|
||||
echo "Installed grub.cfg"
|
||||
else
|
||||
echo "WARNING: grub.cfg not found in ${COOKBOOK_RECIPE}" >&2
|
||||
echo "ERROR: grub.cfg not found in ${COOKBOOK_RECIPE}" >&2
|
||||
echo "The grub.cfg file must exist alongside recipe.toml." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "GRUB recipe complete."
|
||||
|
||||
Reference in New Issue
Block a user