[H-GEN] /dev/log inside a chroot
Martin Pool
mbp at linuxcare.com.au
Wed Aug 23 03:16:41 EDT 2000
On Wed, Aug 23, 2000 at 04:44:24PM +1000, Bruce Campbell wrote:
> Rather than having '/chroot' be a seperate filesystem and also, a seperate
> copy of files in /bin, /lib etc, you can have /chroot be the same
> filesystem as '/' , and then hardlink each directory/file in /chroot/bin
> to /bin, and so forth for /lib etc.
>
> ie:
>
> /chroot/bin/ls ->(hard, not symbolic)-> /bin/ls
> or
> /chroot/bin/ -> /bin/ ( one link )
>
> This saves duplication of diskspace for system utilities. The downside is
> that to save space (say by repeating for /usr), you must do your base
> install on the one filesystem, thus having a large '/' footprint.
Of course one drawback is that then the filesystem can't be mounted
r/o.
Interestingly, Linux 2.4 will probably support many-to-many devices
and mount points. So you can do
mount -o ro /dev/sda4 /jail1/usr
mount -o ro /dev/sda4 /jail2/usr
This may not actually ship, though -- watch Kernel Traffic for more
news.
--
Martin Pool, Linuxcare, Inc.
+61 2 6262 8990
mbp at linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20000823/445a7011/attachment.sig>
More information about the General
mailing list