FS#41751 - [systemd] should add machine-id and hostname to mkinitcpio

Attached to Project: Arch Linux
Opened by Jan (medhefgo) - Friday, 29 August 2014, 13:41 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 30 August 2014, 20:40 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The systemd mkinitcpio hook should at /etc/machine-id and /etc/hostname to the initrd, so that systemd can set the right values in early userspace. The journal would benefit from a stable machine-id that doesn't change at initrd to systemd transition.
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 30 August 2014, 20:40 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Easy to workaround, not strictly necessary, and mandating this would break valid/supported use cases of mkinitcpio.
Comment by Dave Reisner (falconindy) - Friday, 29 August 2014, 22:38 GMT
> The journal would benefit from a stable machine-id that doesn't change at initrd to systemd transition.
Benefit how? The journal will already do the right thing and the initramfs logs *will* be available, regardless of any mismatched machine-id.
Comment by Jan (medhefgo) - Saturday, 30 August 2014, 09:44 GMT
Of course there's no failure in not having these available. But any early userspace messages will not appear when doing a "journalctl -m" query. I'd consider that unnecessary because it's easily remedied. The hostname is just cosmetic for the journalctl output, but would be nice to have.
Comment by Dave Reisner (falconindy) - Saturday, 30 August 2014, 14:53 GMT
> I'd consider that unnecessary because it's easily remedied.
Yes, but it negates a valid use case -- sharing initramfs images across systems (as you might do for PXE booting or some homogenous environment).

The "fix" on your side is just to append these files to FILES= in /etc/mkinitcpio.conf
Comment by Jan (medhefgo) - Saturday, 30 August 2014, 17:16 GMT
You have a point there. Never mind my musings then.

Loading...