SHA256
1
0
forked from pool/systemd
Dr. Werner Fink 2014-05-21 14:13:32 +00:00 committed by Git OBS Bridge
parent 573bf293d0
commit 422e200ecf
4 changed files with 60 additions and 0 deletions

View File

@ -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 Wed May 21 10:23:14 UTC 2014 - werner@suse.de

View File

@ -1213,6 +1213,30 @@ do
done done
%endif %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 %pre
getent group systemd-journal >/dev/null || groupadd -r systemd-journal || : getent group systemd-journal >/dev/null || groupadd -r systemd-journal || :
exit 0 exit 0

View File

@ -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 Wed May 21 10:23:14 UTC 2014 - werner@suse.de

View File

@ -1208,6 +1208,30 @@ do
done done
%endif %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 %pre
getent group systemd-journal >/dev/null || groupadd -r systemd-journal || : getent group systemd-journal >/dev/null || groupadd -r systemd-journal || :
exit 0 exit 0