hi klaus, On Mon, Mar 17, 2003 at 08:28:55PM +0100, Klaus Knopper wrote: > > why does it need to be statically linked? > > Because otherwise you can't unmount the CD because glibc is loaded as > shared library from CD. have you looked at the LD_BIND_NOW setting for ld.so(8)? from the fine man page: LD_BIND_NOW If present, causes the dynamic linker to resolve all symbols at program startup instead of when they are first referenced. do you think this would be helpful? for mount, it would let you even unmount the filesystem that had the mount program on it from what i can figure. if you needed this for init specifically (is it all of init, or just mount?), you could set it up so that there's a knoppix-init package containing a single script /sbin/init.knoppix which does effectively LD_BIND_NOW="yes" /sbin/init (i'm not sure, you might actually have to make it an exec call to replace the process) which should solve your static needs for init, correct? i don't believe it will take up a considerable amount more of memory either, comparing it to a static init (there's probably some lib overhead). alternatively (and i'm a little less certain whether this can be done), is there any way to pivot back to the initrd as the root filesystem? that'd make things real simple, right? anyway, lemme know what you think sean
Attachment:
pgpIEegkuWNN6.pgp
Description: PGP signature