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'
> cp: will not create hard link `././Mount/HD0' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/HD1' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/HD2' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/SquashFS/Files' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/SquashFS/Packages-List-Base' to
> directory `././Mount/CD-ROM'
> cp: will not create hard link
> `././Mount/SquashFS/Packages-List-GoboLinuxTools-S
> table' to directory `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/SquashFS/Packages-List-NonBase'
> to directory `././Mount/CD-ROM'
> cp: will not create hard link
> `././Mount/SquashFS/Packages-List-OpenOffice' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link
> `././Mount/SquashFS/Packages-List-XorgAndDependenc
> ies' to directory `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/SquashFS/Rest' to directory
> `././Mount/
> CD-ROM'
> cp: will not create hard link `././Mount/TmpFS' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Mount/UnionFS/Programs' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link
> `././Programs/BusyBox-InitRD/20060202-SVN/Resource
> s' to directory `././Mount/CD-ROM'
> cp: will not create hard link
> `././Programs/BusyBox-InitRD/20060202-SVN/libexec'
>  to directory `././Mount/CD-ROM'
> cp: will not create hard link
> `././Programs/BusyBox-InitRD/20060202-SVN/man/man9
> ' to directory `././Mount/CD-ROM'
> cp: will not create hard link `././System/Kernel/Modules' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Kernel/Objects' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Kernel/Status' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Daemons' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Environment' to
> directory `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Headers' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Libraries' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Manuals' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Links/Shared' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././System/Variable/tmp' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././Users/gobo' to directory
> `././Mount/CD-ROM'
> cp: will not create hard link `././usr' 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.

-- 
Lucas
powered by /dev/dsp
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to