Skip to content

Commit

Permalink
mkinitramfs: don't include config script for small initramfs
Browse files Browse the repository at this point in the history
when making a minimal initramfs the "config" script cannot work, so
don't install it.

Signed-off-by: NeilBrown <[email protected]>
  • Loading branch information
neilbrown committed Dec 28, 2022
1 parent 2568c6c commit b86ae07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/mkinitramfs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ $remote busybox --list |
# copy in some scripts
for i in $gbtools/initramfs/*
do
echo "## Install script `basename $i`"
base=`basename $i`
if [ "$add_optional" != "yes" -a "$base" == "config" ] ; then
# config doesn't work without optional tools
continue;
fi
echo "## Install script $base"
cp -r $i .
done

0 comments on commit b86ae07

Please sign in to comment.