Merge pull request #1841 from dalto8/btrfs-nesting
[mount] Ensure path is available when creating nested btrfs subvolumes
This commit is contained in:
commit
003e7949e3
@ -193,6 +193,7 @@ def mount_partition(root_mount_point, partition, partitions):
|
|||||||
for s in btrfs_subvolumes:
|
for s in btrfs_subvolumes:
|
||||||
if not s["subvolume"]:
|
if not s["subvolume"]:
|
||||||
continue
|
continue
|
||||||
|
os.makedirs(root_mount_point + os.path.dirname(s["subvolume"]), exist_ok=True)
|
||||||
subprocess.check_call(["btrfs", "subvolume", "create",
|
subprocess.check_call(["btrfs", "subvolume", "create",
|
||||||
root_mount_point + s["subvolume"]])
|
root_mount_point + s["subvolume"]])
|
||||||
if s["mountPoint"] == "/":
|
if s["mountPoint"] == "/":
|
||||||
|
Loading…
Reference in New Issue
Block a user