mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
libvirt-guests: Sync time for autostarted guests
Setting SYNC_TIME=1 does not work on autostarted guests. See https://bugzilla.redhat.com/show_bug.cgi?id=1555398. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
040de3fe46
commit
a501fa7cae
@ -206,11 +206,11 @@ start() {
|
||||
retval run_virsh "$uri" start $bypass "$name" \
|
||||
>/dev/null && \
|
||||
gettext "done"; echo
|
||||
fi
|
||||
if "$sync_time"; then
|
||||
run_virsh "$uri" domtime --sync "$name" >/dev/null
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done <"$LISTFILE"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user