2022-05-09 04:53:51

by Dan Moulding

[permalink] [raw]
Subject: Re: [PATCH v2 0/1] Allow setting hostname before userspace starts

On May 6, 2022, at 1:23 AM, Pavel Machek <[email protected]> wrote:

> init gets passed command line parameters kernel did not use. So init
> can do that easily.

I agree this is a problem that *can* be delegated to init to solve.
But is it *better* to do that? Why have the kernel pass the the hostname
to the init system, just so that the init system has to pass it back to the
kernel later?

> Plus, there's initrd.

This to me is a reason why it's better for the kernel to do this. If left up
to the init system, it must be sure it gets done correctly both when an
initramfs is used, and when one is not.

P.S. Apologies to anyone who received this twice, my first reply was
bounced by the list servers.

Cheers,

-- Dan