From: Dan Moulding <dmoulding@me.com>
To: pavel@ucw.cz
Cc: akpm@linux-foundation.org, corbet@lwn.net, dmoulding@me.com,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
tglx@linutronix.de
Subject: Re: [PATCH v2 0/1] Allow setting hostname before userspace starts
Date: Fri, 6 May 2022 09:44:20 -0600 [thread overview]
Message-ID: <20220506154420.26456-1-dmoulding@me.com> (raw)
In-Reply-To: <20220506072322.GA3925@amd>
On May 6, 2022, at 1:23 AM, Pavel Machek <pavel@ucw.cz> 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
prev parent reply other threads:[~2022-05-06 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-06 6:03 [PATCH v2 0/1] Allow setting hostname before userspace starts Dan Moulding
2022-05-06 6:03 ` [PATCH v2 1/1] init: Add "hostname" kernel parameter Dan Moulding
2022-05-06 7:23 ` [PATCH v2 0/1] Allow setting hostname before userspace starts Pavel Machek
2022-05-06 15:44 ` Dan Moulding [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220506154420.26456-1-dmoulding@me.com \
--to=dmoulding@me.com \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).