Merge pull request #1841 from dalto8/btrfs-nesting

[mount] Ensure path is available when creating nested btrfs subvolumes
This commit is contained in:
Adriaan de Groot 2021-12-05 20:54:23 +01:00 committed by GitHub
commit 003e7949e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,6 +193,7 @@ def mount_partition(root_mount_point, partition, partitions):
for s in btrfs_subvolumes:
if not s["subvolume"]:
continue
os.makedirs(root_mount_point + os.path.dirname(s["subvolume"]), exist_ok=True)
subprocess.check_call(["btrfs", "subvolume", "create",
root_mount_point + s["subvolume"]])
if s["mountPoint"] == "/":