[gobolinux-devel] Handle unmanaged files in FiboSandbox (and cleaner for UnionSandbox)
Jonas Karlsson
jonka750 at student.liu.se
Tue Apr 24 21:36:09 UTC 2007
Here's a proposed change to fix the handling of unmanaged files a bit
cleaner at the same time as it adds support for unmanaged files to
FiboSandbox. In short what it does:
It adds support for mapped mounts to FiboSandbox. This is implemented so
that for every system directory in the mapped mounts option will have a
corresponding directory in Resources/Unmanaged in the ${target} directory,
which will be bind mounted over the system directory redirecting all
writes into the system directory to the directory in Resources/Unmanaged.
Easy, huh? :)
An example:
/System/Kernel/Modules/$(uname -r)/misc/ndiswrapper.ko is in the unmanaged
file array. Then
${target}/Resources/Unmanaged/System/Kernel/Modules/$(uname -r)/misc will
be bind mounted over /System/Kernel/Modules/$(uname -r)/misc, so when the
installer tries to copy the file to /System/Kernel/Modules/$(uname
-r)/misc it will be redirected, through the mount, to
${target}/Resources/Unmanaged/System/Kernel/Modules/$(uname -r)/misc
Union sandbox already had mapped mounts.
Then I made Compile parse the unmanaged_files array and pass it to
SandboxInstall that made it to mapped mounts, which both FiboSandbox and
UnionSandbox now supports.
--
/Jonas
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Compile_mapping_unmanaged.diff
Type: text/x-diff
Size: 2852 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20070424/58934391/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Scripts_mapping_unmanaged.diff
Type: text/x-diff
Size: 9134 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20070424/58934391/attachment-0003.bin
More information about the gobolinux-devel
mailing list