[gobolinux-devel] UnionFS and ChrootCompile
Lucas C. Villa Real
lucasvr at gobolinux.org
Sun Jan 7 19:22:37 UTC 2007
Hi there,
Today I've got unionfs to work within ChrootCompile successfully. The
big problem we had was that union-mounts do not follow other mounts
inside the origin dir. That is, if one has /Programs/Foo/1.0
bind-mounted at chroot/Programs/Foo/1.0, and then performs a
union-mount of chroot/Programs at chroot/union_mount/Programs, the
original contents from /Programs/Foo/1.0 are not carried together.
The fix was to perform an extra union-mount of all bind-mounted
entries within the chroot. It would be ideal to have something like
'mount --rbind' on unionfs, but until that doesn't exist we can live
with this workaround with no problems, as it reproduces quite well
rbind's behaviour.
In order to test unionfs on ChrootCompile, one has to update their
snapshot at /Programs/ChrootCompile, and then use an updated snapshot
inside $chroot/Unpacked/i686/{Compile,Scripts} too.
Good hacking :-)
--
Lucas
powered by /dev/dsp
More information about the gobolinux-devel
mailing list