On 20/08/2013 08:44, Helmut Jarausch wrote:
> On 08/19/2013 04:55:29 PM, Mike Gilbert wrote:
>> On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch
>> <jarau...@igpm.rwth-aachen.de> wrote:
>> > Hi,
>> >
>> > what binaries and libraries have to be put into an initramfs for a
>> system
>> > booting with init=/usr/lib/systemd/systemd ?
>> > (I am building the initramsfs myself)
>> >
>>
>> You need to get your root filesystem and /usr mounted. Just keep that
>> goal in mind and start adding files to support it.
>>
>> There doesn't need to be anything systemd-specific.
>>
> 
> I am not sure about "timing".
> 
> Initially the kernel has only the "mini" /usr partition contained within
> the initramfs.
> Then it switches to "real root" and only then it tries to mount the
> "real" /usr partition.
> Does this all happen before the kernel hands control over to the init
> process (i.e. systemd) ?

Yes.

init requires / to be properly mounted.

You have a typo in your description, it should be:

"Then it switches to "real root" and mounts the "real" / partition."

The kernel mounts /, init mounts /usr (read from fstab).
The kernel does not mount /usr (although there can be one in the
initramfs, this is discarded when real root is mounted)


-- 
-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to