forked from pool/hyper-v
- Start hv_kvp_daemon after network-online.target (bnc#910353)
- ignore ENOBUFS and ENOMEM in the KVP daemon - vssdaemon: skip all filesystems mounted readonly (bnc#909864) - vssdaemon: report freeze errors OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=104
This commit is contained in:
11
hyper-v.spec
11
hyper-v.spec
@@ -129,15 +129,16 @@ cat > ${d}/%{hv_kvp_daemon}.service <<EOF
|
||||
# started via %{_udevrulesdir}/%{hv_kvp_daemon}.rules
|
||||
[Unit]
|
||||
Description=Hyper-V KVP Daemon
|
||||
# During startup the current hostname is cached, so start very late
|
||||
After=network-online.target
|
||||
ConditionVirtualization=microsoft
|
||||
|
||||
[Service]
|
||||
Environment="PATH=%{helper_dir}/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
Type=forking
|
||||
# Restart appears to work, but its unsupported
|
||||
# Reboot required until kernel-user protocol is fixed
|
||||
ExecStartPre=/usr/bin/mkdir /run/%{hv_kvp_daemon}
|
||||
ExecStart=${bindir}/%{hv_kvp_daemon}
|
||||
ExecStart=${bindir}/%{hv_kvp_daemon} --no-daemon
|
||||
ExecReload=/usr/bin/false
|
||||
Restart=no
|
||||
|
||||
@@ -152,11 +153,10 @@ Description=Hyper-V VSS Daemon
|
||||
ConditionVirtualization=microsoft
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
# Restart appears to work, but its unsupported
|
||||
# Reboot required until kernel-user protocol is fixed
|
||||
ExecStartPre=/usr/bin/mkdir /run/%{hv_vss_daemon}
|
||||
ExecStart=${bindir}/%{hv_vss_daemon}
|
||||
ExecStart=${bindir}/%{hv_vss_daemon} --no-daemon
|
||||
ExecReload=/usr/bin/false
|
||||
Restart=no
|
||||
|
||||
@@ -171,8 +171,7 @@ Description=Hyper-V host to guest file copy daemon
|
||||
ConditionVirtualization=microsoft
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=${bindir}/%{hv_fcopy_daemon}
|
||||
ExecStart=${bindir}/%{hv_fcopy_daemon} --no-daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Reference in New Issue
Block a user