Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk2
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-09-18 14:54:42 +0200
committerAnton Hvornum <anton@hvornum.se>2021-09-18 14:54:42 +0200
commit68212dd32cf10e263456ae69cead762731667775 (patch)
tree74cd15fa9a6fb9dda14c85a5d7feea79724daa49 /archinstall/lib/disk2
parent6a125d5bd2e5e0c27dc1feb3598e2e60a0526dd8 (diff)
Preparing to split up ./lib/disk.py
And added some sane(?) defaults, which I'll massage into code some how.
Diffstat (limited to 'archinstall/lib/disk2')
-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