Replace all gzip -9 calls with pigz -9nm ones.
Some gzip calls have --no-name, which disables both the original name and timestamp; use -n (disables original name) and -m (disables original timestamp) for pigz, for all calls.
This commit is contained in:
parent
de66d9f692
commit
14064e08a1
|
@ -14,7 +14,7 @@ for FILE in $@; do
|
|||
isoinfo -fR -i $FILE | perl -e '
|
||||
while (<>) {
|
||||
chomp;m,^/pool/[^/]+/[^/]+/[^/]+/(.*), and print "$1\n";
|
||||
}' | sort | gzip -9 > $LISTFILE
|
||||
}' | sort | pigz -9nm > $LISTFILE
|
||||
mv $LISTFILE $LISTDIR
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -380,7 +380,7 @@ if [ "$LOGOPNG" ] ; then
|
|||
cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
|
||||
echo usr/share/graphics/logo_debian.png | \
|
||||
cpio -oA -H newc -F $GTKINITRD
|
||||
gzip -9 $GTKINITRD
|
||||
pigz -9nm $GTKINITRD
|
||||
)
|
||||
rm -rf $INITRDDIR
|
||||
fi
|
||||
|
|
|
@ -241,7 +241,7 @@ install_firmwares_initrd () {
|
|||
dpkg -x "${MIRROR}/${FILE}" ${FWDIR}
|
||||
done
|
||||
(cd ${FWDIR} ; find lib/firmware | cpio -oA -H newc -F $initrd)
|
||||
gzip -9 $initrd
|
||||
pigz -9nm $initrd
|
||||
rm -fr $FWDIR
|
||||
else
|
||||
echo " WARNING: Could not find firmware package(s) matching $regex"
|
||||
|
|
|
@ -402,7 +402,7 @@ if [ "$LOGOPNG" ] ; then
|
|||
cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
|
||||
echo usr/share/graphics/logo_debian.png | \
|
||||
cpio -oA -H newc -F $GTKINITRD
|
||||
gzip -9 $GTKINITRD
|
||||
pigz -9nm $GTKINITRD
|
||||
)
|
||||
rm -rf $INITRDDIR
|
||||
fi
|
||||
|
|
|
@ -428,7 +428,7 @@ if [ "$LOGOPNG" ] ; then
|
|||
cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
|
||||
echo usr/share/graphics/logo_debian.png | \
|
||||
cpio -oA -H newc -F $GTKINITRD
|
||||
gzip -9 $GTKINITRD
|
||||
pigz -9nm $GTKINITRD
|
||||
)
|
||||
rm -rf $INITRDDIR
|
||||
fi
|
||||
|
|
|
@ -406,7 +406,7 @@ if [ "$LOGOPNG" ] ; then
|
|||
cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
|
||||
echo usr/share/graphics/logo_debian.png | \
|
||||
cpio -oA -H newc -F $GTKINITRD
|
||||
gzip -9 $GTKINITRD
|
||||
pigz -9nm $GTKINITRD
|
||||
)
|
||||
rm -rf $INITRDDIR
|
||||
fi
|
||||
|
|
|
@ -426,7 +426,7 @@ if [ "$LOGOPNG" ] ; then
|
|||
cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
|
||||
echo usr/share/graphics/logo_debian.png | \
|
||||
cpio -oA -H newc -F $GTKINITRD
|
||||
gzip -9 $GTKINITRD
|
||||
pigz -9nm $GTKINITRD
|
||||
)
|
||||
rm -rf $INITRDDIR
|
||||
fi
|
||||
|
|
|
@ -39,7 +39,7 @@ cd $TMPDIR/firmware
|
|||
tar czf ../firmware.tar.gz .
|
||||
zip -9rq ../firmware.zip .
|
||||
cd ..
|
||||
find firmware | cpio --quiet -o -H newc | gzip -9 > firmware.cpio.gz
|
||||
find firmware | cpio --quiet -o -H newc | pigz -9nm > firmware.cpio.gz
|
||||
ls -l $PWD/firmware.cpio.gz $PWD/firmware.tar.gz $PWD/firmware.zip
|
||||
|
||||
sha256sum firmware.* > SHA256SUMS
|
||||
|
|
|
@ -662,13 +662,13 @@ sub recompress {
|
|||
# Packages and Sources files; workaround for bug #402482
|
||||
if ($filename =~ m/\/.*\/(Packages|Sources)$/o) {
|
||||
system("rm -f $_.gz");
|
||||
system("gzip --no-name -9c < $_ >$_.gz");
|
||||
system("pigz -9nmc < $_ >$_.gz");
|
||||
}
|
||||
# Translation files need to be compressed in .gz format on CD?
|
||||
if ($filename =~ m/\/.*\/i18n\/(Translation.*)$/o &&
|
||||
! ($filename =~ m/\/.*\/i18n\/(Translation.*gz)$/o)) {
|
||||
system("rm -f $_.gz");
|
||||
system("gzip --no-name -9c < $_ >$_.gz");
|
||||
system("pigz -9nmc < $_ >$_.gz");
|
||||
system("rm -f $_");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ do
|
|||
fi
|
||||
|
||||
# Generate our listfile while we have the information to hand easily
|
||||
find CD$n/pool -type f | sed 's?^.*/??g' | gzip -9 > $OUT/$OUTFILE.list.gz
|
||||
find CD$n/pool -type f | sed 's?^.*/??g' | pigz -9nm > $OUT/$OUTFILE.list.gz
|
||||
fi
|
||||
|
||||
# If we've made jigdo files, tweak them with extra info now
|
||||
|
|
|
@ -183,7 +183,7 @@ make_cd () {
|
|||
echo $SNAPSHOT >> ${JIGDODIR}/${BASENAME}.jigdo
|
||||
|
||||
# Make sure we compres the jigdo file *before* we checksum it
|
||||
gzip -9 ${JIGDODIR}/${BASENAME}.jigdo
|
||||
pigz -9nm ${JIGDODIR}/${BASENAME}.jigdo
|
||||
mv ${JIGDODIR}/${BASENAME}.jigdo.gz ${JIGDODIR}/${BASENAME}.jigdo
|
||||
|
||||
for SHA_SIZE in 256 512; do
|
||||
|
@ -215,7 +215,7 @@ make_cd () {
|
|||
fi
|
||||
set -e
|
||||
fi
|
||||
find $UPD/CD$CDNUM/pool -type f | sed 's?^.*/??g' | gzip -9 > ${LISTDIR}/${BASENAME}.list.gz
|
||||
find $UPD/CD$CDNUM/pool -type f | sed 's?^.*/??g' | pigz -9nm > ${LISTDIR}/${BASENAME}.list.gz
|
||||
}
|
||||
|
||||
add_file () {
|
||||
|
|
Loading…
Reference in New Issue