Commit 8cf9ed47 authored by Luis Chamberlain's avatar Luis Chamberlain

lib.sh: use systemctl is-active instead of status

This also avoids the pager on using kvm-boot.
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 8ab7ba64
......@@ -115,11 +115,11 @@ kvm_boot_net_require_warn_exit()
kvm_boot_check_network_active()
{
systemctl status kvm-boot-vde2.service
systemctl is-active kvm-boot-vde2.service
if [ $? -ne 0 ]; then
return 1
fi
systemctl status kvm-boot-dnsmasq.service
systemctl is-active kvm-boot-dnsmasq.service
if [ $? -ne 0 ]; then
return 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment