Re: Small patch (makes root.bin about 3900 byte smaller)
Christian Leber <christian@leber.de> writes:
> Hello,
>
> could somebody please apply this small non intrusive patch or say me why
> it is not an option?
> (against CVS from _now_, it belongs just before the "disk loop image
> filesystem" is created)
>
> Index: rootdisk.sh
> ===================================================================
> RCS file: /cvs/debian-boot/boot-floppies/rootdisk.sh,v
> retrieving revision 1.344
> diff -r1.344 rootdisk.sh
> 906a907,909
> > # compress devices.tar.gz better, saves about 3900 byte on the the root image
> > (cd $R/usr/lib/debootstrap ; mv devices.tar.gz _devices.tar.gz ; zcat _devices.tar.gz|gzip -9>devices.tar.gz ; rm _devices.tar.gz)
> >
I think it would make more sense to create it like that in the first
place (untested):
diff -u -p -r1.344 rootdisk.sh
--- rootdisk.sh 2002/03/06 07:21:05 1.344
+++ rootdisk.sh 2002/03/06 14:00:11
@@ -359,7 +359,7 @@ else
for i in 0 1 2 3 4 5 6 7; do mknod $R/dev/ubd$i b 98 $i; done
fi
- (cd $R ; tar zcf $devtarball dev)
+ (cd $R ; GZIP=--best tar zcf $devtarball dev)
fi
T=${tmpdir}/boot-floppies/prototype-tmp-$$
Falk
Reply to: