]> git.ipfire.org Git - thirdparty/dracut.git/commit
99base: Rework `/etc/initrd-release` to derive from real os-release
authorColin Walters <walters@verbum.org>
Fri, 18 Oct 2019 18:26:04 +0000 (18:26 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 22 Oct 2019 11:49:03 +0000 (13:49 +0200)
commit72ae1c4fe73c5637eb8f6843b9a127a6d69469d6
treea02be8e8621d197bff34444f520fc3bf1c986ca4
parent8e9b094b21de2ce771f7bff793d6f972f284ce09
99base: Rework `/etc/initrd-release` to derive from real os-release

I'd like to rework CoreOS Ignition (which runs in the initramfs)
to include some values from the *real* `/etc/os-release` in
HTTP headers.

Looking at this, it turns out dracut eats almost all of the useful
information from it.  I don't think `dracut` should be the `ID`
here...dracut's not an OS itself, it's a way to *build* little
operating systems.  It'd be kind of like if Fedora's Koji
injected itself into `/etc/os-release`.

This code dates back a long time; not sure of all the rationale
behind it.

I changed it so that we keep extending the VERSION/PRETTY_NAME
with the dracut version, but otherwise "pass through" the
rest of the real `/etc/os-release` we were built from unchanged.
modules.d/99base/module-setup.sh