mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-13 02:38:57 -05:00
tar doesn't even support --include, so moved it to tail
This commit is contained in:
parent
e95bfa751d
commit
a17b7944ea
1 changed files with 2 additions and 2 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue