FS#67454 - [mkinitcpio] add /etc/os-release to initramfs, when systemd hook used in mkinitcpio
Attached to Project:
Arch Linux
Opened by Stefan de Konink (skinkie) - Friday, 31 July 2020, 21:41 GMT
Last edited by David Runge (dvzrv) - Tuesday, 22 November 2022, 12:26 GMT
Opened by Stefan de Konink (skinkie) - Friday, 31 July 2020, 21:41 GMT
Last edited by David Runge (dvzrv) - Tuesday, 22 November 2022, 12:26 GMT
|
Details
Description:
systemd requires the /etc/os-release file to be present, at this moment this file is not added, this raises an error when the systemd hook is used. https://www.freedesktop.org/software/systemd/man/os-release.html Additional info: * package version(s) systemd 245 (245.6-8-arch) mkinitcpio 28 Steps to resolve: Append the line add_file /etc/os-release in the build function of /usr/lib/initcpio/install/systemd |
This task depends upon
Closed by David Runge (dvzrv)
Tuesday, 22 November 2022, 12:26 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with mkinitcpio 33-1
Tuesday, 22 November 2022, 12:26 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with mkinitcpio 33-1
What error?
[ 62.046004] systemd-tmpfiles[265]: Entry "/etc/os-release" does not match any include prefix, skipping.
Edit:
Triggered by
L /etc/os-release - - - - ../usr/lib/os-release
from /usr/lib/tmpfiles.d/etc.conf
[1] https://github.com/systemd/systemd/blob/v246/src/tmpfiles/tmpfiles.c#L2412
https://github.com/systemd/systemd/issues/16580#issuecomment-666193698
> systemd uses the existence of this file as a flag whether to run in initial RAM disk mode, or not.
This sounds like an empty file is fine...
BTW, this was added in 2012 already:
https://github.com/archlinux/mkinitcpio/commit/b8459a2ac067b05925d660fdf2b62855eae544da