Hi Colin,

On Tue, Feb 26, 2013 at 4:51 PM, Colin Walters <[email protected]> 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>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to