From 30a810138be78dc561834a916764cbee55f9dbb1 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Wed, 24 Jul 2024 01:32:07 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20gucc:=20fix=20btrfs=20subvol=20m?= =?UTF-8?q?ountpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gucc/src/btrfs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gucc/src/btrfs.cpp b/gucc/src/btrfs.cpp index b8e5168..b87dd28 100644 --- a/gucc/src/btrfs.cpp +++ b/gucc/src/btrfs.cpp @@ -69,7 +69,8 @@ auto btrfs_mount_subvols(const std::vector& subvols, std::string mount_option = mount_opts; } - const auto& subvolume_mountpoint = fmt::format(FMT_COMPILE("{}{}"), root_mountpoint, subvol.subvolume); + // mount at the actual mountpoint where subvolume is going to be mounted after install + const auto& subvolume_mountpoint = fmt::format(FMT_COMPILE("{}{}"), root_mountpoint, subvol.mountpoint); // TODO(vnepogodin): refactor create dir and mount into own function std::error_code err{};