<div>This problem and my implementation are independient. If I make a build without the dracut modulethe filesystem is the same.</div><div><br></div><div>My idea is remount /home partition from nand to sd card. During pre-pivot stage is the best option to do that, because /home partition is already mounted but root system is not switched yet.</div>

<div><br></div><div>The script is something like this:</div><div><br></div><div><div>writable_start || die</div><div><br></div><div>mkdir -p $NEWHOME</div><div>if [ -b $SD_CARD ]; then</div><div>    mount $SD_CARD $NEWHOME</div>

<div>    umount $NEWROOT/home || die</div><div>    mount --bind "$NEWHOME/home" "$NEWROOT/home" || die</div><div>    echo "user home is mounted in $SD_CARD"</div><div>    umount $NEWHOME</div>

<div>fi</div><div><br></div><div>writable_done || die</div></div><div><br></div><br><div class="gmail_quote">2010/7/16 Jon Nettleton <span dir="ltr"><<a href="mailto:jon.nettleton@gmail.com">jon.nettleton@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Fri, Jul 16, 2010 at 11:29 AM, Esteban Bordon<br>
<<a href="mailto:ebordon@plan.ceibal.edu.uy">ebordon@plan.ceibal.edu.uy</a>> wrote:<br>
> Hi all!<br>
> I'm working on F11-XO1 build to Uruguay and I made a dracut module that it<br>
> mount user's home in the sd card. I'm using olpc-os-builder-1.1.0 and<br>
> resultant image filesystem haven't got the structure specified<br>
> in <a href="http://wiki.laptop.org/go/Zamora_Teran/olpc-update" target="_blank">http://wiki.laptop.org/go/Zamora_Teran/olpc-update</a>.<br>
> If I look /proc/mounts the partition /home /versions and /security doesn't<br>
> exists.<br>
> This can be for some error in the process?<br>
<br>
</div></div>If dracut is mounting the the /home partition then it is being mounted<br>
before / is mounted RW and thus won't be entered in /etc/mtab by<br>
rc.sysinit.  There is code in rc.sysinit that once the root filesystem<br>
is mounted rw /etc/mtab is updated with the mount information for it<br>
and the other usual filesystems that have been mounted for the initial<br>
boot process, ( /proc, /sys /dev/pts /dev/shm /proc/bus/usb )<br>
<br>
Is there a particular reason you want /home mounted before the system<br>
initialization and filesystem check is done?<br>
<font color="#888888"><br>
Jon<br>
</font></blockquote></div><br>