shinobar,shinobar wrote:Hi, Barry,
Sorry i do not yet running the new Warry-007, but looking up the code in woof September 3, 2010.
Regarding the sfs version, the bootmanager has the code:Is it right for the kernel 2.6.28? or should be '-gt 27'?Code: Select all
SFSSTR='squashfs, version 3' #v423 [ $KERNELSUBVER -gt 28 ] && SFSSTR='squashfs, version 4' #v423 [ $KERNELSUBVER -eq 27 ] && [ $SUB_SUB_KERNELVER -gt 46 ] && SFSSTR='squashfs, version 4' #100607
[ $KERNELSUBVER -gt 27 ] && SFSSTR='squashfs, version 4'
[ $KERNELSUBVER -eq 27 ] && [ $SUB_SUB_KERNELVER -gt 46 ] && SFSSTR='squashfs, version 4'
The concept of 'mix-n-match' is nice idea for the developers i think.
If there is a chance that you or someone provides older kernel, next code may be useful in rc.sysinit.
The Puppy-431JP(Japanese edition) has such a code before '###PERSONAL BOOT SCRIPT###' because the 3 kernel version of Puppy-431JP were build up with the similar concept of 'mix-n-match'.
Of course the main sfs file was converted for the older kernel which uses sfs version 3.Hope to be something helpful.Code: Select all
# correct mksquashfs/unsquashfs version KERNELSUBVER=$KERNMAJ #KERNELSUBVER=`echo -n "$KERNVER" | cut -f 3 -d '.' | cut -f 1 -d '-' | cut -f 1 -d '_'` #v423 100831 SUB_SUB_KERNELVER=`echo -n "$KERNVER" | cut -f 1 -d '-' | cut -f 4 -d '.'` #100607 SFSVER=3 [ $KERNELSUBVER -gt 27 ] && SFSVER=4 [ $KERNELSUBVER -eq 27 ] && [ $SUB_SUB_KERNELVER -gt 46 ] && SFSVER=4 for F in mksquashfs unsquashfs; do ln -sf /usr/sbin/$F$SFSVER /usr/sbin/$F done
My code is correct. Squashfs 4.0 was merged in the 2.6.29 kernel. However I backported 4.0 to the 2.6.27.47 kernel, and I intend to do so for any 2.6.27.x upgrades -- I think Iguleder has already done this. All other kernels prior to 2.6.29 have Squashfs 3.x.