]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodesuspend: report unsupported if systemd & pm-utils aren't available
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 23 May 2019 15:55:22 +0000 (16:55 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 17 Jun 2019 14:02:24 +0000 (15:02 +0100)
commit0c1e03508584ab0daa9da33ea07f720c9587538c
tree3ee1ec77f5a089b88f5293c569acc2b551cd26ab
parent7a232286b9d8c19ad62cb93c19e4651894447743
nodesuspend: report unsupported if systemd & pm-utils aren't available

When libvirtd is run inside a container it is normal that neither
systemd nor pm-utils will be available. In this case there is no way to
suspend the host, so libvirt should just report the feature unsupported
instead of raising an error.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virnodesuspend.c