Patrick wrote:
>
>
> But isnt there another way? e.g. copying / mount-moving/binding 
> real_root to the union or something like that?
>
The way i make access to the underlying filesystems is to 'mount -o
move' the underlying
mount point into the union berfore i chroot into it.

In my setup i have in the flash:

- A squashfs root filesystem to boot on
- A ram filesyatem to pickup writes
- A /flash to persist things
- The /flash/root directory for patching the squashfs root

I have these in /mnt and move them into the union to have access to the
underlying
filesystems after the chroot

Sketchy: Eg. (with unionfs)

mount /mnt/ram/
mount /mnt/flash/
mount / /mnt/initroot -o bind

mount -t unionfs unionfs /mnt/union -o
dirs=/mnt/ram:/mnt/flash/root=ro:/mnt/initroot=ro

mount /mnt/flash    /mnt/union/mnt/flash      -o move
mount /mnt/ram      /mnt/union/mnt/ram        -o move
mount /mnt/initroot /mnt/union/mnt/initroot   -o move

cd /mnt/union
chroot . init # Rock & roll



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to