forked from pool/systemd
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=640
This commit is contained in:
parent
573bf293d0
commit
422e200ecf
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 13:24:13 UTC 2014 - werner@suse.de
|
||||
|
||||
- Add a workaround for old distributions like 13.1 to avoid
|
||||
deadlocks due NFS shares stopped after network
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 10:23:14 UTC 2014 - werner@suse.de
|
||||
|
||||
|
@ -1213,6 +1213,30 @@ do
|
||||
done
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} < 1310
|
||||
cat > %{buildroot}/%{_prefix}/lib/systemd/system/fix.service <<-'EOF'
|
||||
[Unit]
|
||||
Description=Fix against deadlock at shutdown
|
||||
Wants=remote-fs.target remote-fs-pre.target
|
||||
Before=remote-fs.target systemd-logind.service
|
||||
After=remote-fs-pre.target network.target rpcbind.target nss-lookup.target nss-user-lookup.target
|
||||
ConditionPathExists=|/etc/init.d/autofs
|
||||
ConditionPathExists=|/etc/init.d/nfs
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/bin/true
|
||||
ExecStop=-/etc/init.d/autofs stop
|
||||
ExecStop=-/etc/init.d/nfs stop
|
||||
|
||||
[Install]
|
||||
WantedBy=remote-fs.target
|
||||
EOF
|
||||
mkdir -p %{buildroot}/%{_prefix}/lib/systemd/system/remote-fs.target.wants
|
||||
ln -sf ../fix.service %{buildroot}/%{_prefix}/lib/systemd/system/remote-fs.target.wants
|
||||
%endif
|
||||
|
||||
%pre
|
||||
getent group systemd-journal >/dev/null || groupadd -r systemd-journal || :
|
||||
exit 0
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 13:24:13 UTC 2014 - werner@suse.de
|
||||
|
||||
- Add a workaround for old distributions like 13.1 to avoid
|
||||
deadlocks due NFS shares stopped after network
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 10:23:14 UTC 2014 - werner@suse.de
|
||||
|
||||
|
24
systemd.spec
24
systemd.spec
@ -1208,6 +1208,30 @@ do
|
||||
done
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} < 1310
|
||||
cat > %{buildroot}/%{_prefix}/lib/systemd/system/fix.service <<-'EOF'
|
||||
[Unit]
|
||||
Description=Fix against deadlock at shutdown
|
||||
Wants=remote-fs.target remote-fs-pre.target
|
||||
Before=remote-fs.target systemd-logind.service
|
||||
After=remote-fs-pre.target network.target rpcbind.target nss-lookup.target nss-user-lookup.target
|
||||
ConditionPathExists=|/etc/init.d/autofs
|
||||
ConditionPathExists=|/etc/init.d/nfs
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/bin/true
|
||||
ExecStop=-/etc/init.d/autofs stop
|
||||
ExecStop=-/etc/init.d/nfs stop
|
||||
|
||||
[Install]
|
||||
WantedBy=remote-fs.target
|
||||
EOF
|
||||
mkdir -p %{buildroot}/%{_prefix}/lib/systemd/system/remote-fs.target.wants
|
||||
ln -sf ../fix.service %{buildroot}/%{_prefix}/lib/systemd/system/remote-fs.target.wants
|
||||
%endif
|
||||
|
||||
%pre
|
||||
getent group systemd-journal >/dev/null || groupadd -r systemd-journal || :
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user