Lucas C. Villa Real wrote: > On 2/16/07, Jonatan Liljedahl <[EMAIL PROTECTED]> wrote: >> Lucas C. Villa Real wrote: >>> On 2/16/07, Jonatan Liljedahl <[EMAIL PROTECTED]> wrote: >>>> Shouldn't this startGoboLinux (attached) script do the trick? (Or did I >>>> missunderstand the problem?) >>>> But how do I put it into a new initrd? I thought I could just loopback >>>> mount the initrd (cramfs) image and replace it, but it only says "read >>>> only fs", even though mount says it's mounted rw... >>> Mount is lying to you.. cramfs is a read-only filesystem. You need to >>> copy the contents of the loopback to a work dir, and then run >>> mkfs.cramfs on it: >> I mounted the initrd on /Mount/Foo, then tried cp -a /Mount/Foo >> /path/to/workdir but I got this: >> cp: will not create hard link `././Mount/Floppy' to directory >> `././Mount/CD-ROM' ... >> Are all those dirs supposed to be hardlinks to Mount/CD-ROM?? > > Ouch. As far as I know, no.. You might want to try this command instead: > (cd /Mount/Foo && tar cpf - .) | (cd /path/to/workdir && tar xpf -) > > It will probably argue about timestamps, but that's ok. Worked fine for me > here.
Yep, that's what I did and it worked. Now the CD boots without errors! But... modprobe refuses to load any modules since the running kernel isn't installed in /System/Kernel... I don't know if this is a problem, unless I need to load some important module during install? (like for my SATA disk, if that isn't compiled in?) And I forgot one of the squashfs files so the installer and other stuff wasn't there... =( But it's almost working now. Do you think I need to replace the installed kernel too? In that case I need to update the kernel on this machine so I can extract the squashfs's, etc... I've put up an updated initrd at http://kymatica.com/new_initrd with a fixed startGoboLinux script, this loop should work, right: ? # Mounting Packages*.squashfs files inside /Programs DIRS="/Mount/TmpFS/Programs=rw" for i in /Mount/CD-ROM/Packages*.squashfs; do mount -o loop,ro -t squashfs $i \ /Mount/SquashFS/`basename $i .squashfs` DIRS="$DIRS:/Mount/SquashFS/`basename $i .squashfs`=ro done mount -t unionfs -o dirs=$DIRS none /Mount/TmpFS/Programs Do you have the time to create a new ISO with this initrd and the new kernel (both as isolinux/kernel and as the "installed" kernel in the corresponding squashfs image)? Almost there now... =) -- /Jonatan - http://kymatica.com _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel