Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-10-30 16:57:51 +0200
committerAnton Hvornum <anton@hvornum.se>2021-10-30 16:57:51 +0200
commit4bc164cccc4c95d1f1e12e721aa61bb7299c1cef (patch)
treec1a668c6fd643ed7e358ed19ba9ad4a6ef51951f /archinstall/lib
parentc2596be1f10cb766b9bd06a0ab637468b90b07e4 (diff)
Forgot to include {installation.target} in subvolume mounting
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk/btrfs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/disk/btrfs.py b/archinstall/lib/disk/btrfs.py
index bf24f88b..f682cd7c 100644
--- a/archinstall/lib/disk/btrfs.py
+++ b/archinstall/lib/disk/btrfs.py
@@ -18,13 +18,13 @@ def mount_subvolume(installation, location :Union[pathlib.Path, str], force=Fals
if type(location) == str:
location = pathlib.Path(location)
- if not location.exists():
- location.mkdir(parents=True)
+ if not (installation.target/location).exists():
+ (installation.target/location).mkdir(parents=True)
if glob.glob(str(installation.target/location/'*')) and force is False:
raise DiskError(f"Cannot mount subvolume to {installation.target/location} because it contains data (non-empty folder target)")
- log(f"Mounting {location} as a subvolume", level=logging.INFO)
+ log(f"Mounting {installation.target/location} as a subvolume", level=logging.INFO)
# Mount the logical volume to the physical structure
mount_location = get_mount_info(installation.target/location, traverse=True)['source']
SysCommand(f"umount {mount_location}")