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

From: Dan Moulding
Date: Fri May 06 2022 - 11:44:26 EST


On May 6, 2022, at 1:23 AM, Pavel Machek <pavel@xxxxxx> 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