Accepting request 977577 from home:lee_duncan:branches:network

- Set initiatorname in %post (at end of install), for cases
  where root is read-only at startup time (bsc#1198457)

OBS-URL: https://build.opensuse.org/request/show/977577
OBS-URL: https://build.opensuse.org/package/show/network/open-iscsi?expand=0&rev=201
This commit is contained in:
Lee Duncan 2022-05-16 16:14:13 +00:00 committed by Git OBS Bridge
parent 0278f3f749
commit 875f82c401
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 13 20:53:23 UTC 2022 - Lee Duncan <lduncan@suse.com>
- Set initiatorname in %post (at end of install), for cases
where root is read-only at startup time (bsc#1198457)
-------------------------------------------------------------------
Mon May 9 19:56:32 UTC 2022 - Lee Duncan <lduncan@suse.com>

View File

@ -143,6 +143,9 @@ mv %{buildroot}%{_sysconfdir}/logrotate.d/iscsiuiolog %{buildroot}%{_sysconfdir}
%post
%{?regenerate_initrd_post}
if [ ! -f %{_sysconfdir}/iscsi/initiatorname.iscsi ] ; then
%{_sbindir}/iscsi-gen-initiatorname
fi
%service_add_post iscsi.service iscsid.service iscsid.socket
%posttrans