Skip to content

Commit

Permalink
Fix missing storage.user index error
Browse files Browse the repository at this point in the history
  • Loading branch information
tasket committed Apr 4, 2024
1 parent 28992aa commit 15466c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wyng
Original file line number Diff line number Diff line change
Expand Up @@ -1234,15 +1234,15 @@ class LocalStorage:
if (fs := LocalStorage.get_fs_type(self.path)) in self.rltypes: self.fstype = fs
self.snappath = self.path+("wyng_snapshot_tmp/" if self.fstype == "btrfs" else "")

self.users = {x[0]: int(x[2]) for x in
(ln.split(":") for ln in open("/etc/passwd","r") if ln.strip())}
self.groups = {x[0]: int(x[2]) for x in
(ln.split(":") for ln in open("/etc/group","r") if ln.strip())}

self.acquire_deltas = get_reflink_deltas
self.process_deltas = update_delta_digest_reflink
self.prep_snapshots = prepare_snapshots_reflink

self.users = {x[0]: int(x[2]) for x in
(ln.split(":") for ln in open("/etc/passwd","r") if ln.strip())}
self.groups = {x[0]: int(x[2]) for x in
(ln.split(":") for ln in open("/etc/group","r") if ln.strip())}

if require_online and not self.online:
x_it(7, "Local storage is offline: "+repr(localpath))

Expand Down Expand Up @@ -4510,7 +4510,7 @@ def cleanup():

# Constants / Globals
prog_name = "wyng"
prog_version = "0.8wip" ; prog_date = "20240402"
prog_version = "0.8wip" ; prog_date = "20240403"
format_version = 3 ; debug = False ; tmpdir = None
admin_permission = os.getuid() == 0

Expand Down

0 comments on commit 15466c0

Please sign in to comment.