Skip to content

Commit

Permalink
grml-live: write grmlmain.cfg in one go
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 26, 2024
1 parent 01955a6 commit 65d7a3f
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -1347,21 +1347,23 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] || [ "$ARCH" = arm64 ] ; then
if ! [ -r "${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg" ] || [ "$DISTRI_NAME" = "grml" ] ; then
log "including grmlmain.cfg in ${BUILD_OUTPUT}/boot/isolinux/distri.cfg"
echo "include grmlmain.cfg" > "${BUILD_OUTPUT}/boot/isolinux/distri.cfg"
echo "include default.cfg" > "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
echo "include menuoptions.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
echo "include grml.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"

for f in "${BUILD_OUTPUT}"/boot/isolinux/submenu*.cfg ; do
echo "include $(basename "$f")" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
done

echo "include options.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
if [ -z "$NO_ADDONS" ] ; then
echo "include addons.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
fi
echo "include isoprompt.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
echo "include hd.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
echo "include hidden.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
# Generate grmlmain.cfg
{
echo "include default.cfg"
echo "include menuoptions.cfg"
echo "include grml.cfg"
for f in "${BUILD_OUTPUT}"/boot/isolinux/submenu*.cfg ; do
echo "include $(basename "$f")"
done
echo "include options.cfg"
if [ -z "$NO_ADDONS" ] ; then
echo "include addons.cfg"
fi
echo "include isoprompt.cfg"
echo "include hd.cfg"
echo "include hidden.cfg"
} > "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
else # assume we are building a custom distribution:
log "File ${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg found, using it."
einfo "File ${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg found, using it."
Expand Down

0 comments on commit 65d7a3f

Please sign in to comment.