Thanatermesis:
> No, the files are corrupted when the system has booted, but originally the

Which point do you call "when the system has booted?"
If it means "after initramfs", then I have to say "it might be freed"
again.


> # found the first layer and mount it:
> mount -t squashfs -o ro,loop /elive/.mnt/cdrom/system/filesystem.squashfs
> /elive/.mnt/elive
> 
> # found the second layer and mount it:
> mount -t squashfs -o ro,loop /elive/.mnt/cdrom/deliver/elive
> /elive/.mnt/elive

Probably what you want to mount is /elive/.mnt/deliver, isn't it?


> # mount the temporal filesystem:
> mount -n -t tmpfs -o size=90%,mode=755 tmpfs /root
> 
> # Move mounted filesystems to /root:
> mount -n -o move /elive/.mnt/deliver /root/elive/.mnt/deliver
> mount -n -o move /elive/.mnt/elive /root/elive/.mnt/elive
> mount -n -o move /elive/.mnt/cdrom /root/elive/.mnt/cdrom
> 
> # Mounting aufs with both layers:
> mount -t aufs -o
> br:/root/elive/.mnt/cow:/root/elive/.mnt/deliver:/root/elive/.mnt/elive aufs
> /root/elive/.mnt/aufs

Do you make these directories?
Such as "mkdir -p /root/elive/.mnt/deliver
/root/elive/.mnt/elive /root/elive/.mnt/cdrom /root/elive/.mnt/cow", 
after mounting /root?


> # Prepare the live filesystem on /root:
> mount -n -o bind /root/elive/.mnt/aufs/bin /root/bin
> mount -n -o bind /root/elive/.mnt/aufs/boot /root/boot
> mount -n -o bind /root/elive/.mnt/aufs/etc /root/etc
        :::

I don't understand what you want to do.
Are these bindings are really necessary?


> After this step, initramfs finishes and the normal boot starts in /root,

How do you do that?
"exec chroot . sbin/init < dev/console > dev/console 2>&1 dev/console"
or something?

I'd recommend you to check the documents and scripts under
CVS_TREE/aufs/sample/diskless dir.


Junjiro Okajima

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to