[Unionfs] kernel 2.6.21.1 problem with unionfs 2.0

Joachim Schiele js at lastlog.de
Tue Nov 20 10:33:46 EST 2007


On Friday 11 May 2007, Tomas M wrote:
> > The init script which mounts the filesystem is
> >
> > mount -t tmpfs tmpfs /mnt/dynamic
> > mount -t unionfs -o dirs=/mnt/dynamic:/ unionfs /mnt/union
> > cd /mnt/union
> > mkdir oldroot
> > pivot_root . /mnt/union/oldroot
> >
> > this all works without errors.
> >
> > however, the next part of the script...
> >
> > mount -t proc /proc /proc
> > mount -t sysfs none /sys
> > mkdir /dev/pts
> > mount -t devpts devpts /dev/pts
i do:
          mount -t xfs -o ro,noatime /dev/hda3 /mnt/readonlyfs
          mkdir -p /mnt/difffs
          mount /dev/hda4 /mnt/difffs
 
          mount -t unionfs -o dirs=/mnt/difffs=rw:/mnt/readonlyfs=ro 
none /mnt/new 
#afterwards:
cd /mnt/new 
mkdir initrd 
umount /proc 
 
pivot_root . initrd 

see the complete script:
http://www.lastlog.de/wiki/index.php/Unionfs

> I'm not sure if that is the case, but I believe that 'pivot_root' should
> be followed by 'exec chroot' in all cases. I would suggest you to read
> man(8) pivot_root.
>
>
> Tomas M
> linux-live.org
>
>
> _______________________________________________
> unionfs mailing list: http://unionfs.filesystems.org/
> unionfs at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs




More information about the unionfs mailing list