Hey Michael,

thanks for your quick reply.

> Hi Philipp,
> 
> Yes, something like that should work - it's more or less how most live 
> CDs do it (though I can't speak for the details, I haven't used this 
> method for a while - I am now using klibc instead of busybox and 
> mounting aufs later).
> 
> If you need example scripts you could look at linux-live, for example.
> 
> As to the active mounts, so long as you don't want to manipulate them 
> afterwards, that seems to be no big problem.

Yes I will have to manipulate the mountpoints I guess.
It is possible that I'll have to unmount aufs, which will
be "one layer below".
Do you/anybody see a way how this could be achieved?

--
flip

> 
> Best wishes,
> mt
> 
> Philipp Wehrheim wrote:
> > Hey List,
> > 
> > 
> > I'm trying to use aufs in combination with initramfs and a mtd-flash
> > device but I can't really figure out how to do it.
> > 
> > What I want is:
> > 
> > - boot the kernel that starts the initramfs.
> > - the initramfs init checks if it can find a partition on the hd via  
> >   findfs
> > - and if it finds the partition mounts a squashfs(ro) and the hd 
> >   partition (rw) to /newroot
> >     mount <hd> /aufs
> >     cat <mtd> > /squashfs.img
> >     mount -n /squashfs.img /squash
> >     mount -n -t aufs -o br=/aufs:/squash none /newroot
> > 
> > - if the partition is not found it mounts some tmpfs and the squashfs
> >     mount -n -t tmpfs /aufs
> >     mount -n <mtd> /squash
> >     mount -n -t aufs -o br=/aufs:/squash none /newroot
> > 
> > - in the end init calls  
> >     exec switch_root /newroot /sbin/init
> > 
> > Can this work?
> > Because there are some active mount when I call switchroot?
> > 
> > Can anybody share some experience please.
> > 
> > --
> > flip
> > 
> > 
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Reply via email to