Skip to content
Snippets Groups Projects
Unverified Commit 248cd93b authored by Andrew Robbins's avatar Andrew Robbins Committed by Oliver Smith
Browse files

Correct btrfs subvolume creation in install step (MR 2319)

btrfs can only create a single subvolume at a time.
parent 69efa6dd
No related branches found
No related tags found
No related merge requests found
......@@ -98,15 +98,17 @@ def prepare_btrfs_subvolumes(args, device, mountpoint):
/snapshots should be a separate subvol so that changing the root subvol
doesn't affect snapshots
"""
pmb.chroot.root(args,
["btrfs", "subvol", "create",
f"{mountpoint}/@",
f"{mountpoint}/@home",
f"{mountpoint}/@root",
f"{mountpoint}/@snapshots",
f"{mountpoint}/@srv",
f"{mountpoint}/@tmp",
f"{mountpoint}/@var"])
subvolume_list = ["@",
"@home",
"@root",
"@snapshots",
"@srv",
"@tmp",
"@var"]
for subvolume in subvolume_list:
pmb.chroot.root(args, ["btrfs", "subvol", "create",
f"{mountpoint}/{subvolume}"])
# Set the default root subvolume to be separate from top level btrfs
# subvol. This lets us easily swap out current root subvol with an
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment