Skip to content

Commit

Permalink
query the correct root path on btrfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ygerlach committed Dec 7, 2024
1 parent 07f5589 commit 779e6c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Snapshot.vala
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ public class Snapshot : GLib.Object{
app_version = json_get_string(config,"app-version","");
file_count = (int64) json_get_uint64(config,"file_count",file_count);
live = json_get_bool(config,"live",false);
string type = config.get_string_member_with_default("type", "rsync");

distro = LinuxDistro.get_dist_info(path_combine(path, "localhost"));
string extension = (type == "btrfs") ? "@" : "localhost";
distro = LinuxDistro.get_dist_info(path_combine(path, extension));

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

Expand Down

0 comments on commit 779e6c2

Please sign in to comment.