From ed823be3bae2151a73ba9817a32c226ac5a3c1c0 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 18 Sep 2021 15:52:29 +0200 Subject: Refactoring and cleaning up a bit I'm making sure that the JSON structure of the user config can get a say in how the subvolumes should be used later on. As well as splitting up where the logic should be to make it easier to maintain. --- archinstall/lib/disk2/btrfs.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'archinstall/lib/disk2/btrfs.py') diff --git a/archinstall/lib/disk2/btrfs.py b/archinstall/lib/disk2/btrfs.py index 549d23c1..d6758b3f 100644 --- a/archinstall/lib/disk2/btrfs.py +++ b/archinstall/lib/disk2/btrfs.py @@ -1,9 +1,4 @@ -def create_subvolume(partition): - if partition['mountpoint'] == '/': - partition['filesystem']['subvolume'] = '@' - elif partition['mountpoint'] == '/home': - partition['filesystem']['subvolume'] = '@home' +from ..general import SysCommand - # @.snapshots /.snapshots - # @log /var/log - # @pkg /var/cache/pacman/pkg \ No newline at end of file +def create_subvolume(installation): + SysCommand(f"btrfs subvolume create {installation.target}/@") \ No newline at end of file -- cgit v1.2.3-70-g09d2