Skip to content

Commit 779e6c2

Browse files
committed
query the correct root path on btrfs
1 parent 07f5589 commit 779e6c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Core/Snapshot.vala

+3-1
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ public class Snapshot : GLib.Object{
226226
app_version = json_get_string(config,"app-version","");
227227
file_count = (int64) json_get_uint64(config,"file_count",file_count);
228228
live = json_get_bool(config,"live",false);
229+
string type = config.get_string_member_with_default("type", "rsync");
229230

230-
distro = LinuxDistro.get_dist_info(path_combine(path, "localhost"));
231+
string extension = (type == "btrfs") ? "@" : "localhost";
232+
distro = LinuxDistro.get_dist_info(path_combine(path, extension));
231233

232234
//log_debug("repo.mount_path: %s".printf(repo.mount_path));
233235

0 commit comments

Comments
 (0)