Re: [Hampshire] unionfs and nfsroot

Top Page

Reply to this message
Author: Dave Walker
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] unionfs and nfsroot
Andy Smith wrote:
> Hello,
>
> Anyone know much about unionfs?
>
> I've got a virtual machine that's booted over NFS read-only but I
> want it to act a little bit like a live CD type of affair by doing a
> unionfs between its (NFS) root and /dev/shm/.union (tmpfs).


<SNIP>

I would use aufs over unionfs:

Not quite what you asked, but demonstrates aufs quite well.
mount -o loop -t iso9660 iso.iso /mnt/iso
mount -t aufs -o br:/var/whereever_you_want_overlay:/mnt/iso/ none /mnt/woot

/mnt/iso             ro, containing the original image
/var/whereever_you'         contains all the changes made
/mnt/woot             is now rw - of both



HTH,

Kind Regards,
Dave Walker