]> git.ipfire.org Git - thirdparty/dracut.git/commit
Prevent environment leaking into initrd-release
authorAlexander Tsoy <alexander@tsoy.me>
Sat, 8 Sep 2018 14:02:03 +0000 (17:02 +0300)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 10 Sep 2018 07:42:36 +0000 (09:42 +0200)
commitb3480d31b01e66e21a70b7dab55eac95449126c7
tree41b8d0cf500df428b5359661fc068bfdc3b245eb
parent8dd7bb48fcd9d19dd2d7cec2577cd2c6b414fd8b
Prevent environment leaking into initrd-release

On my system the following initrd-release is generated:
...
VERSION="4 dracut-048 dracut-048"
...

VERSION is not defined in /etc/os-release, so the variable is
concatenated with its previous value:

* "4" comes from the kernel build system since dracut is called from the
  kernel install hook ("4" is a major kernel version);
* first "dracut-048" comes from the "systemd-initrd" module;
* second "dracut-048" comes from the "base" module.
modules.d/01systemd-initrd/module-setup.sh
modules.d/99base/module-setup.sh