Patrick schrieb: > Flemming Madsen schrieb: > >> 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 >> >> > Heh, thats what I exactly tried myself .. but here it doesnt work . none > of the mounted filesystems that were moved are accessable / viewable in > the union later on. > > heh okay, got that one fixed (added some sleep's and seen it was a typo tho.. now my question is .. your /mnt/ram is tmpfs I guess while /mnt/flash is where? like where is it actually stored? (only thing I can imagine is onto the rootfs)
regards, Patrick > regards, > Patrick > >> ------------------------------------------------------------------------- >> 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 >> >> >> > > > ------------------------------------------------------------------------- > 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 > > ------------------------------------------------------------------------- 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