14
0
Files
python-rtslib-fb/rtslib-target-service-for-suse.patch
Lee Duncan df200633bc Accepting request 1255725 from home:lee_duncan:branches:devel:languages:python
- Update to version v2.2.2:
  * Explicitly set build target wheel packages
  * Fix the program name in pyproject.toml
  * Fix and update pre-commit ruf check
  * Add PyPA publish and pre-commit check workflows
  * Add rtslib_fb import compability
  * Silently ignore OSError on close
  * fixup! Fix various issues found by ruff linter rules
  * Add ruff rules, pre-commit config
  * Convert codebase to pathlib
  * Fix various issues found by ruff linter rules
  * Refactor code to Python>=3.9 to pass pyupgrade
  * Fix issues found by ruff pep8-naming rules
  * Fix issues found by ruff pycodestyle rules
  * Use f-strings
  * Fixing issues found by ruff Pyflakes rules
  * Move to PEP-621; Drop -fb from module name
  * rtslib: explicitely import "kmod.error" and "kmod.Kmod"
  * rtslib/LUN: add some ALUA property
  Also, updated the SPEC file, and removed patch no longer needed,
  since the problem is no longer present:
  * rtslib-Fix-handling-of-sysfs-RW-attrs-that-are-actually-RO.patch
  Added three commits, one from upstream, the others submitted there:
  * Install-targetctl-as-an-entrypoint.patch (added from upstream)
  * Remove-use-of-usr-bin-python.patch (submitted upstream)
  * Fix-issue-with-Path-open-needs-parenthesis.patch (submitted upstream)

OBS-URL: https://build.opensuse.org/request/show/1255725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=81
2025-03-24 19:48:06 +00:00

25 lines
696 B
Diff

From: Lee Duncan <lduncan@suse.com>
Date: Sat Mar 22 10:52:22 AM PDT 2025
Subject: [PATCH] blah
Blah
---
--- 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,9 +6,12 @@ After=sys-kernel-config.mount network.ta
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/bin/targetctl restore
-ExecStop=/usr/bin/targetctl clear
+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
SyslogIdentifier=target
[Install]
WantedBy=multi-user.target
+Alias=targetcli.service