Skip to content

Commit

Permalink
Introduce architecture specific boot addon templates
Browse files Browse the repository at this point in the history
We redesigned grml-live-grml in
grml/grml-live-grml#11 to ship architecture
specific boot addon templates. This should simplify our life by being
able to ship files under identical names on all supported architectures.
  • Loading branch information
mika committed Dec 18, 2024
1 parent 83ec4f9 commit f873346
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -1273,10 +1273,23 @@ else
fi

# copy only files so we can handle bsd4grml on its own
for file in "${TEMPLATE_DIRECTORY}"/boot/addons/* ; do
test -f "$file" && cp "$file" "$BUILD_OUTPUT"/boot/addons/
done

if [ -d "${TEMPLATE_DIRECTORY}/arch/${ARCH}/boot/addons" ] ; then
for file in "${TEMPLATE_DIRECTORY}/arch/${ARCH}/boot/addons/"* ; do
if [ -f "$file" ] ; then
log "Installing $file in /boot/addons."
einfo "Installing $file in /boot/addons."; eend 0
cp "$file" "$BUILD_OUTPUT"/boot/addons/
fi
done
else # legacy path (before https://github.com/grml/grml-live-grml/pull/11):
for file in "${TEMPLATE_DIRECTORY}"/boot/addons/* ; do
if [ -f "$file" ] ; then
log "Installing $file in /boot/addons. (Legacy support)"
einfo "Installing $file in /boot/addons. (Legacy support)"; eend 0
cp "$file" "$BUILD_OUTPUT"/boot/addons/
fi
done
fi
eend 0

if [ -n "$NO_ADDONS_BSD4GRML" ] ; then
Expand Down

0 comments on commit f873346

Please sign in to comment.