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

package info (click to toggle)
python-rtslib-fb 2.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 384 kB
  • sloc: python: 4,407; sh: 76; makefile: 16
file content (42 lines) | stat: -rw-r--r-- 1,433 bytes parent folder | download
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/rtslib/targetctl.py
===================================================================
--- python-rtslib-fb.orig/rtslib/targetctl.py
+++ python-rtslib-fb/rtslib/targetctl.py
@@ -28,7 +28,7 @@ from pathlib import Path
 
 from rtslib_fb import RTSRoot
 
-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
@@ -40,7 +40,7 @@ from .utils import (
     set_attributes,
 )
 
-default_save_file = "/etc/target/saveconfig.json"
+default_save_file = "/etc/rtslib-fb-target/saveconfig.json"
 
 class RTSRoot(CFSNode):
     '''
@@ -71,7 +71,7 @@ class RTSRoot(CFSNode):
     # 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):
         '''