This is as proposed by Thomas in review of my hibernate-resume patchset. The objective benefit of this change is that in_initrd() function is used for checking, which not only checks for /etc/initrd-release, but also verifies that the rootfs is on a virtual device.
Ivan Shapovalov (2): units: add ConditionInitrd= units: use ConditionInitrd=true instead of ConditionPathExists=/etc/initrd-release man/systemd.unit.xml | 13 +++++++++++++ src/core/condition.c | 17 +++++++++++++++++ src/core/load-fragment-gperf.gperf.m4 | 1 + src/shared/condition-util.c | 1 + src/shared/condition-util.h | 1 + units/initrd-cleanup.service.in | 2 +- units/initrd-fs.target | 2 +- units/initrd-parse-etc.service.in | 2 +- units/initrd-root-fs.target | 2 +- units/initrd-switch-root.service.in | 2 +- units/initrd-switch-root.target | 2 +- units/initrd-udevadm-cleanup-db.service.in | 2 +- units/initrd.target | 2 +- units/systemd-hibernate-res...@.service.in | 2 +- 14 files changed, 42 insertions(+), 9 deletions(-) -- 2.1.0 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel