Re: Why is /sbin/init dynamically linked?

From: Eugene Andrienko <evg.andrienko_at_gmail.com>
Date: Fri, 21 Aug 2026 18:56:31 UTC
Bakul Shah <bakul@iitbombay.org> 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