Skip to content

Commit

Permalink
CA-392685: Replace /tmp/network-reset with /var/tmp/network-reset to …
Browse files Browse the repository at this point in the history
…persist tmp file after reboot

- Modified xapi_globs.ml to include this change.

Signed-off-by: Ashwinh <[email protected]>
  • Loading branch information
ashwin9390 committed Aug 13, 2024
1 parent 47cc0de commit 9256139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocaml/xapi/xapi_globs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ let metrics_prefix_mem_vms = "xcp-rrdd-mem_vms"
let metrics_prefix_pvs_proxy = "pvsproxy-"

(** Path to trigger file for Network Reset. *)
let network_reset_trigger = "/tmp/network-reset"
let network_reset_trigger = "/var/tmp/network-reset"

let first_boot_dir = "/etc/firstboot.d/"

Expand Down
2 changes: 1 addition & 1 deletion scripts/xe-reset-networking
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ from optparse import OptionParser
pool_conf = '@ETCXENDIR@/pool.conf'
inventory_file = '@INVENTORY@'
management_conf = '/etc/firstboot.d/data/management.conf'
network_reset = '/tmp/network-reset'
network_reset = '/var/tmp/network-reset'

def read_dict_file(fname):
f = open(fname, 'r')
Expand Down

0 comments on commit 9256139

Please sign in to comment.