mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-22 22:45:34 -05:00
Fixed bugs in stage4 tar operations
This commit is contained in:
parent
791a123414
commit
35538d605f
1 changed files with 2 additions and 4 deletions
|
@ -191,7 +191,6 @@ tarExcludesPortage=(
|
|||
tarIncludes=(
|
||||
"dev/console"
|
||||
"dev/null"
|
||||
"var/db/pkg/*"
|
||||
)
|
||||
|
||||
tarExcludes=("${tarExcludes[@]/#/"$targetPath"}")
|
||||
|
@ -263,7 +262,7 @@ if ! $optQuiet; then
|
|||
echo "example: \$ $(basename "$0") -s /my-backup --exclude=/etc/ssh/ssh_host*"
|
||||
echo
|
||||
echo "COMMAND LINE PREVIEW:"
|
||||
echo 'tar' "${tarOptions[@]}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}" "${tarIncludes[@]}"
|
||||
echo 'tar' "${tarOptions[@]}" "${tarIncludes[@]}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}"
|
||||
if $optSeperateKernel; then
|
||||
echo
|
||||
echo 'tar' "${tarOptions[@]}" -f "${stage4Filename}.ksrc.${stage4Ext}" "${targetPath}usr/src/linux-$(uname -r)"
|
||||
|
@ -280,8 +279,7 @@ fi
|
|||
# start stage4 creation:
|
||||
if $optQuiet; then
|
||||
tar "${tarOptions[@]}" "${tarIncludes[@]}" "${tarExcludes[@]/#/--exclude=}" -f "${stage4Filename}.${stage4Ext}" "${targetPath}"
|
||||
if [[ "$optSeperateKernel" ]]
|
||||
then
|
||||
if "$optSeperateKernel"; then
|
||||
tar "${tarOptions[@]}" -f "${stage4Filename}.ksrc.${stage4Ext}" "${targetPath}usr/src/linux-$(uname -r)"
|
||||
tar "${tarOptions[@]}" -f "${stage4Filename}.kmod.${stage4Ext}" "${targetPath}lib"*"/modules/$(uname -r)"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue