Skip to content

Commit

Permalink
Merge pull request #223 from grml/mika/arch-addons
Browse files Browse the repository at this point in the history
Introduce architecture specific boot addon templates
  • Loading branch information
mika authored Dec 18, 2024
2 parents 4d9184a + fcfafac commit 6718bf8
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 6718bf8

Please sign in to comment.