if your init and mount are not statically linked, how on earth are they
going to work before /lib is mounted?
or wait, suppose you could just keep in the real /lib only libs needed
for init, mount and whatever other basic commands on boot (for instance
if you have to boot "linux single" one day or something).

on my system: 

# ldd /sbin/init
libc.so.6 => /lib/libc.so.6 (0x40018000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

# ldd /bin/mount
libc.so.6 => /lib/libc.so.6 (0x40018000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

so if you could get away w/ just having those two libs you'd be SET.

however take a look at login here, things may not be quite so cozy for
"linux single" after all..

# ldd /bin/login
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40018000)
libpam.so.0 => /lib/libpam.so.0 (0x40046000)
libpam_misc.so.0 => /lib/libpam_misc.so.0 (0x4004e000)
libdl.so.2 => /lib/libdl.so.2 (0x40051000)
libc.so.6 => /lib/libc.so.6 (0x40055000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

a quick ls shows that this might not be so bad...

# ls -sh1 /lib/libcrypt-2.1.2.so /lib/libdl-2.1.2.so /lib/libpam.so.0.70
/lib/libpam_misc.so.0.70 /lib/libpamc.so.0.70 /lib/libc-2.1.2.so
/lib/ld-2.1.2.so
 81k /lib/ld-2.1.2.so
875k /lib/libc-2.1.2.so
 20k /lib/libcrypt-2.1.2.so
 10k /lib/libdl-2.1.2.so
 28k /lib/libpam.so.0.70
6.0k /lib/libpam_misc.so.0.70
9.0k /lib/libpamc.so.0.70

another thing to take into consideration is which modules you'll need
before mount. initrd is your friend in that case i guess.

just some stuff to consider. my system is debian potato so YMMV, but the
numbers shouldn't be wildly different.

--
stephen waters
amicus, inc.

Seth Vidal wrote:
> 
> > Nope, sure don't.  My new /lib *partition* mount is not even in
> > /etc/fstab. What will happen at boot time is the /lib *directory* on the /
> > partition will be available.  Right? I never deleted the data in that
> > partition. I just mounted my new /lib *partition* on top of it for test.
> >
> 
> oh. I see now.
> that should work. Might be weird in the moments of the mount.
> 
> hmm.
> good luck.
> -sv

Reply via email to