The one slight complication with the above is that /sbin/portmap is dynamically
linked against /usr/lib/libwrap.so.0 Since this is in /usr, it won’t work. This
can be solved by copying the file (and link) below the /usr mount point, and just let the
file be ’covered’ when the mount happens.
In some installations, where a shared read-only /usr is being used, it may be desirable
to move other large directories over into the read-only /usr. For example, you might
replace /bin, /lib and /sbin with links into /usr/root/bin, /usr/root/lib
and /usr/root/sbin respectively. This creates other problems for running the /linuxrc
script, requiring bash, portmap, mount, ifconfig, and a handful of other shared libraries
to be copied below the mount point — a simple statically-linked C program would
solve this problem.
48
Commentaires sur ces manuels