From: <p5...@ya...> - 2005-12-05 12:07:58
|
Hi all, I'm trying to costumize morphix using morphing-morphix, but when i try to boot my new image i obtain several errors... To build main module i exec this command: mmaker -t /mnt/sda1/tmp -g debian-bootstrap-sid.tgz default.xml \ default-module.mod To build minimodule i use minimod-gen. this is my minimod tree: #ls test-mini/morphix REDME files loadmod.sh main_module mini_module for the iso: isomorph --add main default-module.mod basemod-2.6.12-2005-12-05.iso temp.iso isomorph --add mini test-mini.mod temp.iso default.iso and trying my iso on vmware thi is what i obtain: [...] cloop: Read error at pos 477 in file <NULL>, 3619 bytes lost. * Loading Module /cdrom/mainmod/default-module.mod ... cloop: losetup_file: 2052 blocks, 65536 bytes/block, largest block is 65562 bytes. cloop: Can't open device read-write [...] * Checking for MiniModules on CDROM cloop: Read error at pos 477 in file <NULL>, 3619 bytes lost. head: cannot open '/mnt/main/morphix/main_module' for reading: No such file or directory * No unioctl found, not applying unionfs minimodule overlaying * No able to find /mnt/mini/mod2/morphix/loadmod.sh, continuing [..] anybody has any idea? (all binaries and script that i use are taken from morphing-morphix) tnx |
From: Alex de L. <al...@de...> - 2005-12-05 13:37:53
|
On Mon, 2005-12-05 at 13:07 +0100, p5...@ya... wrote: > Hi all, > I'm trying to costumize morphix using morphing-morphix, but when i try t= o > boot my new image i obtain several errors... > anybody has any idea? > (all binaries and script that i use are taken from morphing-morphix) Try adding a larger file to your minimod (50kb or so). I think Brendan (bmsleight) also ran into this limitation some time ago: cloop compression doesn't work properly on very small files... --=20 /------------------------------------------------------------------\ | Alex de Landgraaf | The cure for boredom is curiosity | | Student AI & CS, VU, A'dam | There is no cure for curiosity | | Phone: 06-16844084 | | | GPG: http://www.alextreme.org/key_alex.asc /'-'\ | | www.alextreme.org & www.morphix.org ( o o ) | \------------------------------------------oOO0--(_)--0OOo---------/ |
From: Brendan M. S. <me...@ba...> - 2005-12-06 17:09:39
|
Hi p5005, On 12/5/05, p5...@ya... <p5...@ya...> wrote: > Hi all, Does the mainmodule load at all ? > (all binaries and script that i use are taken from morphing-morphix) > Are you building it from the LiveCD or building it on a different linux environment ? It looks like the cloop used to build the module is the wrong version, but the live-cd should have the correct cloop versions. > mmaker -t /mnt/sda1/tmp -g debian-bootstrap-sid.tgz default.xml \ > default-module.mod Was the default repository on the templates changed from 192.168.0.1 to a valid repository ? I have not pointed the template directly to Debian to try to encourage the use of local repositories and reduce the load on Debian servers. > > To build minimodule i use minimod-gen. > this is my minimod tree: > #ls test-mini/morphix > REDME files loadmod.sh main_module mini_module There is a patched version of minimodule-gen on the Morphing-Morphix CD which includes as file in test-mini/morphix/files/ called minimodule.junk to make sure the module is above the minimum size. > [...] > cloop: Read error at pos 477 in file <NULL>, 3619 bytes lost. > * Loading Module /cdrom/mainmod/default-module.mod ... > cloop: losetup_file: 2052 blocks, 65536 bytes/block, largest block is > 65562 bytes. > cloop: Can't open device read-write > [...] > * Checking for MiniModules on CDROM > cloop: Read error at pos 477 in file <NULL>, 3619 bytes lost. > head: cannot open '/mnt/main/morphix/main_module' for reading: No such > file or directory Either missing mainmodule ? or incorrect cloop version. > * No able to find /mnt/mini/mod2/morphix/loadmod.sh, continuing > [..] Either missing minimodule ? or incorrect cloop version. Hope this helps, Brendan |
From: paolo.perfetti <pao...@ya...> - 2005-12-07 14:55:04
Attachments:
demo-module.xml
|
> Hi p5005, hi Brendan > 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?) > Are you building it from the LiveCD or building it on a different > linux environment ? It looks like the cloop used to build the module > is the wrong version, but the live-cd should have the correct cloop > versions. from the LiveCD > >> mmaker -t /mnt/sda1/tmp -g debian-bootstrap-sid.tgz default.xml \ >> default-module.mod > > Was the default repository on the templates changed from 192.168.0.1 > to a valid repository ? sure, ftp.debian.org/debian (there is my module.xml as attachment) >> To build minimodule i use minimod-gen. >> this is my minimod tree: >> #ls test-mini/morphix >> REDME files loadmod.sh main_module mini_module > > There is a patched version of minimodule-gen on the Morphing-Morphix > CD which includes as file in test-mini/morphix/files/ called > minimodule.junk to make sure the module is above the minimum size. Now when i build minimod using minimod-gen, there's no problem but when i use this script: ###### DIR=/mnt/sda1/mini-module/test-mini/ MINIMODULE=/mnt/sda1/mini-module/test-mini.mod #TMP=/mnt/sda1/tmp SIZE=`du -s $DIR | awk '{ print $1}'` : $((DIFF = 50 - $SIZE)) : $((DIFF = 2*DIFF)) if [ $SIZE -lt 50 ] ; then dd if=/dev/urandom of=$DIR/morphix/files/padding.junk count=$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 ###### ...i obtain the same errors i need to automize minimodule generation, so is difficult for me to use minimod-gen. I look to source and i can't understand what minimodule-gen does and i don't bye, paolo |
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 |