From a17b7944ea474ef335edf7104d0c55d50b9b6a77 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 3 Aug 2024 16:11:23 -0400 Subject: [PATCH] tar doesn't even support --include, so moved it to tail --- mkstage4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkstage4.sh b/mkstage4.sh index 8da34aa..fee3147 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -270,7 +270,7 @@ if ! $optQuiet; then echo echo "COMMAND LINE PREVIEW:" #echo 'tar' "${tarOptions[@]}" "${tarIncludes[@]}" "${tarExcludes[@]}" -f "$stage4Filename" "${targetPath}" - echo 'tar' "${tarOptions[@]}" "${tarIncludes[@]/#/--include=}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}" + echo 'tar' "${tarOptions[@]}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}" "${tarIncludes[@]}" #${excludes[@]/#/--exclude= if $optSeperateKernel; then echo @@ -288,7 +288,7 @@ fi # start stage4 creation: if $optQuiet; then #echo "Would've worked" - tar "${tarOptions[@]}" "${tarIncludes[@]/#/--include=}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}" + tar "${tarOptions[@]}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}" "${tarIncludes[@]}" if [[ "$optSeperateKernel" ]] then tar "${tarOptions[@]}" -f "${stage4Filename}.ksrc.${stage4Ext}" "${targetPath}usr/src/linux-$(uname -r)"