[systemd-devel] [PATCH 0/2] adding missing pieces for systemd in the initramfs
Tom Gundersen
teg at jklm.no
Tue Feb 26 08:15:36 PST 2013
Hi Colin,
On Tue, Feb 26, 2013 at 4:51 PM, Colin Walters <walters at verbum.org> wrote:
> Random thought: What about something like
> ConditionVirtualization=initrd, or an equivalent like
> ConditionPathExists=/usr/share/i-am-an-initramfs
> to ensure these unit files aren't ever run (even if accidentally) on a
> regular system?
They all have "ConditionPathExists=/etc/initrd-release" which is meant
to achieve this. See [0] for details.
Cheers,
Tom
[0]: <http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface>
More information about the systemd-devel
mailing list