mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
tar: Update to 1.30 (V3)
For details see: https://www.gnu.org/software/tar/ Since new 'tar' has changes in commandline option parsing, it was necessary to adjust 'lfs/Config, 'lfs/cdrom' and 'lfs/core-updates' (thanks to Marcel for diffs and Michael for corrections). I have tried to make only the most necessary changes. As always, please check. Best, Matthias Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
779706b5f8
commit
c22976907e
@@ -205,11 +205,9 @@ define PAK
|
||||
sed -e 's/BUILDTARGET/$(BUILDTARGET)/g' -e 's/KVER/$(KVER)/g' -e 's/MACHINE/$(BUILD_ARCH)/g' -i /install/packages/package/ROOTFILES
|
||||
sed -e 's/xxxKVERxxx/$(KVER)/g' -i /install/packages/package/install.sh
|
||||
chmod 755 /install/packages/package/{{,un}install,update}.sh
|
||||
cd / && tar cf /install/packages/package/files.tmp --files-from=/install/packages/package/ROOTFILES --exclude='#*' \
|
||||
-p --numeric-owner
|
||||
cd / && tar cfp /install/packages/package/files.tmp --numeric-owner --exclude='#*' --files-from=/install/packages/package/ROOTFILES
|
||||
# Double tar to remove double files
|
||||
tar xf /install/packages/package/files.tmp -C /install/packages/package/tmp/ \
|
||||
-p --numeric-owner
|
||||
tar xfp /install/packages/package/files.tmp --numeric-owner -C /install/packages/package/tmp/
|
||||
rm -f /install/packages/package/files.tmp
|
||||
cd /install/packages/package/tmp/ && tar cf - -p --numeric-owner * | xz $(XZ_OPT) > /install/packages/package/files.tar.xz
|
||||
rm -r /install/packages/package/tmp
|
||||
|
||||
Reference in New Issue
Block a user