[Clfs-support] libraries for booting temporary system

Alexander Roalter alexander at roalter.it
Sat Jul 18 17:44:59 PDT 2009

Hash: SHA1

after compiling the temporary system (SVN, for pure64 x86_64) and
booting it I got the error

Kernel panic: no init found. Try passing init= option to kernel...

looking into it (and comparing with my host system), /sbin/init is
linked shared, while my original init (opensuse 11.0) is linked static.
So contrary to ch. 7.5 I changed the src/Makefile in sysvinit-2.86 the
line LDFLAGS=-s to LDFLAGS=-s -static

then I got a static init, and the system booted up until the shell
should have been started with the error: /bin/sh: No such file or directory

The problem is: all the files in /bin don't know where to look for the
libraries, which are located in /tools/lib, and not in /lib.

So if I copy all files from /tools/lib to lib, everything works and I
get the login prompt and I also can log in...

Now, since this is not described in the book, what has to be done that
the executable from the temporary system know how to find their
libraries? I would assume one could use ld.so.cache and set up the
search path to /tools/lib, but nothing of this kind is done...

Any suggestions?

- --
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org


More information about the Clfs-support mailing list