Re: Why is /sbin/init dynamically linked?
Eugene Andrienko <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <[email protected]> |
Bakul Shah <[email protected]> writes: > When one of these libraries breaks, you can't even boot > single user. In this case why even bother with /rescue. > > [Discovered this when init crashed for someone] > Note: I'm not a FreeBSD developer, just a user. After reading reviews for commit https://github.com/freebsd/freebsd-src/commit/24d887436dcd5b6c18a7505e477c79cae3002c3a (mentioned in the e-mail in top thread) I found that it is not so problematic, as it could be seen. First, as zlei (https://reviews.freebsd.org/D56536#1297106) noted, the /rescue/init is still statically linked. And second, as kib (https://reviews.freebsd.org/D56536#1296698) noted, it is possible to load /bin/sh instead of init, with the help of loader, and get access to the borked system. Hope it helps to fix the broken system, if it is still an issue. -- Eugene Andrienko