Re: How fast can I get FBSD to boot?

From: Arthur Chance <freebsd_at_qeng-ho.org>
Date: Wed, 17 Aug 2022 07:41:28 UTC
On 17/08/2022 03:40, Pete Wright wrote:
> 
> 
> On 8/16/22 18:04, Ralf Mardorf wrote:
>> On Tue, 2022-08-16 at 15:06 -0400, Alejandro Imass wrote:
>>> Thank you all for your suggestions and taking time to respond to this
>>> thread!
>>>
>>> The Linux distro I have in mind is Tiny Core Linux, it boots really
>>> fast and it's around 10MB in size.
>> Hi,
>>
>> if you are in favour of FreeBSD consider to test BusyBox with FreeBSD.
> 
> if you are looking for a stripped down userland like busybox might be
> worth taking a look at tools/bsdbox in the src repo.  The readme states
> its a WIP - but might be worth testing if you are really space constrained.
> 
> https://cgit.freebsd.org/src/tree/tools/bsdbox

If bsdbox isn't ready enough yet, why not simply use /rescue? The man
page says

> To build a
> FreeBSD system where space is critical, /rescue can be used as a
> replacement for the standard /bin and /sbin directories; simply change
> /bin and /sbin to be symbolic links pointing to /rescue.  Since /rescue
> is statically linked, it should also be possible to dispense with much of
> /usr/lib in such an environment.

As well as saving space, this will probably save time because the rescue
binary doesn't need dynamic linkage every time a utility is run and it
will probably be cached in the virtual memory system.

-- 
All network cabling aspires to the condition of macramé.