From: Brendan M. S. <me...@ba...> - 2005-12-07 17:14:27
|
Hi Paolo, On 12/7/05, paolo.perfetti <> wrote: > > Does the mainmodule load at all ? > Yes, now if i use my iso with only mainmod, there's no problem. > (yesterday i've forget to put cloop-utils in mainmod, is this the problem= ?) I would use cloop-utils as default, although I am note sure this was the problem. > Now when i build minimod using minimod-gen, there's no problem but when i > use this script: > ###### > DIR=3D/mnt/sda1/mini-module/test-mini/ > MINIMODULE=3D/mnt/sda1/mini-module/test-mini.mod > #TMP=3D/mnt/sda1/tmp > > SIZE=3D`du -s $DIR | awk '{ print $1}'` > : $((DIFF =3D 50 - $SIZE)) > : $((DIFF =3D 2*DIFF)) > if [ $SIZE -lt 50 ] ; then > dd if=3D/dev/urandom of=3D$DIR/morphix/files/padding.junk count=3D= $SIZE > fi > mkisofs -U -R -V "Morphix Mini" -hide-rr-moved -cache-inodes \ > -no-bak -pad $DIR | nice -5 create_compressed_fs - 65536 > $MINIMODULE > > rm $DIR/morphix/files/padding.junk > ###### Does this look for a file size of less the 50 bytes rather than less than 50k bytes, try:- SIZE=3D`du -s -k $DIR | awk '{ print $1}'` Also I would add bs=3D1k :- dd if=3D/dev/urandom of=3D$DIR/morphix/files/padding.junk bs=3D1k count=3D$= SIZE Personally I ammended mimimod-gen to always produce a junk file of 20K as it takes up so little space on the compressed minimodule it IMHO not worth deleting. Hope this helps, Brendan |