mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
[mount] Experimental: accept 'no' for subvolumes
If there is no subvolume set, skip creation of that subvolume. This allows root to be on a bare FS, without a tag or subvolume name. To achieve this, use subvolume: no (no quotes there) in the YAML.
This commit is contained in:
parent
3845e05834
commit
951ddfb72a
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ def mount_partition(root_mount_point, partition, partitions):
|
||||||
libcalamares.globalstorage.insert("btrfsSubvolumes", btrfs_subvolumes)
|
libcalamares.globalstorage.insert("btrfsSubvolumes", btrfs_subvolumes)
|
||||||
# Create the subvolumes that are in the completed list
|
# Create the subvolumes that are in the completed list
|
||||||
for s in btrfs_subvolumes:
|
for s in btrfs_subvolumes:
|
||||||
|
if not s["subvolume"]:
|
||||||
|
continue
|
||||||
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