Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk2/btrfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/disk2/btrfs.py')
-rw-r--r--archinstall/lib/disk2/btrfs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/archinstall/lib/disk2/btrfs.py b/archinstall/lib/disk2/btrfs.py
new file mode 100644
index 00000000..549d23c1
--- /dev/null
+++ b/archinstall/lib/disk2/btrfs.py
@@ -0,0 +1,9 @@
+def create_subvolume(partition):
+ if partition['mountpoint'] == '/':
+ partition['filesystem']['subvolume'] = '@'
+ elif partition['mountpoint'] == '/home':
+ partition['filesystem']['subvolume'] = '@home'
+
+ # @.snapshots /.snapshots
+ # @log /var/log
+ # @pkg /var/cache/pacman/pkg \ No newline at end of file