mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue