From be292f8d74569c6f615dbed1f29dd264cd45cf19 Mon Sep 17 00:00:00 2001 From: Jianhong Yin Date: Wed, 27 Mar 2024 16:12:58 +0800 Subject: [PATCH] kiss-vm: update screen log about start libvirt services Signed-off-by: Jianhong Yin --- kiss-vm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss-vm b/kiss-vm index 965e20b..6183d00 100755 --- a/kiss-vm +++ b/kiss-vm @@ -1677,7 +1677,7 @@ prepare_kiss_vm() { sed -ri '/^hosts:/s/files /&libvirt libvirt_guest /' /etc/nsswitch.conf } - echo -e "{VM:INFO} start libvirtd service ..." + # start libvirt services ..." use_monolithic() { if ! grep -Fq "virtqemud.service" <(systemctl list-units -a --type service); then return 0 @@ -1687,6 +1687,7 @@ prepare_kiss_vm() { return 1 } if use_monolithic; then + echo -e "{VM:INFO} start libvirtd service:" test -x /etc/rc.d/rc.libvirt && /etc/rc.d/rc.libvirt start #for Slackware if command -v systemctl >/dev/null; then systemctl is-enabled --quiet libvirtd || systemctl enable libvirtd @@ -1699,6 +1700,7 @@ prepare_kiss_vm() { systemctl restart libvirtd && systemctl restart virtlogd else virtdrvList="qemu interface network nodedev nwfilter secret storage" + echo -e "{VM:INFO} start virt{${virtdrvList// /,}}d-* services:" if command -v systemctl >/dev/null; then for drv in $virtdrvList; do systemctl unmask virt${drv}d.service