From b86ae07969d16a473800bb9deb57e0c3a1bd85d2 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 28 Dec 2022 16:42:55 +1100 Subject: [PATCH] mkinitramfs: don't include config script for small initramfs when making a minimal initramfs the "config" script cannot work, so don't install it. Signed-off-by: NeilBrown --- scripts/mkinitramfs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/mkinitramfs b/scripts/mkinitramfs index 0a23363..e2fb107 100755 --- a/scripts/mkinitramfs +++ b/scripts/mkinitramfs @@ -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