[Unionfs] Umounting initrd image
Tomas M
tomas at linux-live.org
Fri Mar 17 00:43:41 EST 2006
If you use pivot_root, old root is moved to a directory you specified.
So just unmount it and then use the following command to free initrd
from RAM:
/sbin/blockdev --flushbufs /dev/rd/0
The blockdev command can be used only _after_ init starts so you'll need
to add it to your startup scripts, you can't execute it from linuxrc.
I'm sending this to unionfs mailinglist too so people can find it in the
archive now.
Tomas M
slax.org
Ram Kumar wrote:
> Hi,
> I could sucessfully boot into a union which is created by
> merging two of my hard drive partitions (containing a readonly root
> file system in one and a empty readwrite partion in other). This is
> handled by linuxrc script located in my initrd image whose only
> purpose is to create a union and pivot_root into the new rootfs. Now
> Iam wondering whether there is a proper way to free the resources
> (from my embedded linux target) by umounting the initrd image before
> init is launched. Is this possible ?
> regards.
> ram.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> unionfs mailing list
> unionfs at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
More information about the unionfs
mailing list