mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Add modified list to global storage
This commit is contained in:
parent
f53f43ad03
commit
092374d08c
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ def mount_partition(root_mount_point, partition, partitions):
|
||||||
swap_choice = swap_choice.get( "swap", None )
|
swap_choice = swap_choice.get( "swap", None )
|
||||||
if swap_choice and swap_choice == "file":
|
if swap_choice and swap_choice == "file":
|
||||||
btrfs_subvolumes.append({'mountPoint': '/swap', 'subvolume': '/@swap'})
|
btrfs_subvolumes.append({'mountPoint': '/swap', 'subvolume': '/@swap'})
|
||||||
|
# Store created list in global storage so it can be used in the fstab module
|
||||||
|
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:
|
||||||
subprocess.check_call(['btrfs', 'subvolume', 'create',
|
subprocess.check_call(['btrfs', 'subvolume', 'create',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue