5293d48576
- Update to version v2.1.74: * version 2.1.74 * rtslib: safely call shutil.copy() * Fix fail when target_core_mod doesn't exists * Fix EPERM errors with scsi_generic devices Also, add this commit submitted upstream: * rtslib-Fix-handling-of-sysfs-RW-attrs-that-are-actually-RO.patch And this commit for SUSE: * rtslib-target-service-for-suse.patch Lastly, this package now installs systemd unit file target.service, which will replace eventually targetcli.service (from the targetcli-fb package), since this matches how upstream works. This also meant updating the SPEC file. OBS-URL: https://build.opensuse.org/request/show/842415 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=55
19 lines
592 B
Diff
19 lines
592 B
Diff
--- a/systemd/target.service 2019-01-31 11:11:28.517558290 -0800
|
|
+++ b/systemd/target.service 2020-10-16 09:34:28.888091013 -0700
|
|
@@ -6,10 +6,13 @@ After=sys-kernel-config.mount network.ta
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
-ExecStart=/usr/bin/targetctl restore
|
|
+Environment=CONFIG_FILE=/etc/target/saveconfig.json
|
|
+EnvironmentFile=-/etc/sysconfig/target
|
|
+ExecStart=/usr/bin/targetctl restore $CONFIG_FILE
|
|
+ExecStop=/usr/bin/targetctl save $CONFIG_FILE
|
|
ExecStop=/usr/bin/targetctl clear
|
|
SyslogIdentifier=target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
-
|
|
+Alias=targetcli.service
|