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/