File: fix-path-of-etc-saveconfig.json.patch

package info (click to toggle)
python-rtslib-fb 2.1.75-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 376 kB
  • sloc: python: 4,372; sh: 76; makefile: 63
file content (42 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: Fix path for the /etc/target/saveconfig.json
 The default path is /etc/target, which IMO is a way too generic. So I changed
 this to /etc/rtslib-fb-target/saveconfig.json
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2014-01-25

Index: python-rtslib-fb/scripts/targetctl
===================================================================
--- python-rtslib-fb.orig/scripts/targetctl
+++ python-rtslib-fb/scripts/targetctl
@@ -28,7 +28,7 @@ from rtslib_fb import RTSRoot
 import os
 import sys
 
-default_save_file = "/etc/target/saveconfig.json"
+default_save_file = "/etc/rtslib-fb-target/saveconfig.json"
 err = sys.stderr
 
 def usage():
Index: python-rtslib-fb/rtslib/root.py
===================================================================
--- python-rtslib-fb.orig/rtslib/root.py
+++ python-rtslib-fb/rtslib/root.py
@@ -34,7 +34,7 @@
 from .utils import fread, fwrite
 from .alua import ALUATargetPortGroup
 
-default_save_file = "/etc/target/saveconfig.json"
+default_save_file = "/etc/rtslib-fb-target/saveconfig.json"
 
 class RTSRoot(CFSNode):
     '''
@@ -65,7 +65,7 @@
     # this should match the kernel target driver default db dir
     _default_dbroot = "/var/target"
     # this is where the target DB is to be located (instead of the default)
-    _preferred_dbroot = "/etc/target"
+    _preferred_dbroot = "/etc/rtslib-fb-target"
 
     def __init__(self):
         '''