summaryrefslogtreecommitdiffstats
path: root/makesubvols.sh
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-11-29 12:27:06 +0100
committerGeorg Pfuetzenreuter2022-11-29 12:27:06 +0100
commit15042704b931e02b4dbcfcee1d0dab586c4c16ef (patch)
tree9b3dd3d7de0ef6fcd28fb5fa1f6049605c1beb8c /makesubvols.sh
downloadopensuse-bootstrap-master.tar.gz
opensuse-bootstrap-master.tar.bz2
opensuse-bootstrap-master.zip
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'makesubvols.sh')
-rwxr-xr-xmakesubvols.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/makesubvols.sh b/makesubvols.sh
new file mode 100755
index 0000000..bb41aac
--- /dev/null
+++ b/makesubvols.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -Ceux
+
+btrfs subvolume create /mnt/@
+btrfs subvolume create /mnt/@/.snapshots
+mkdir /mnt/@/.snapshots/1
+btrfs subvolume create /mnt/@/.snapshots/1/snapshot
+btrfs subvolume create /mnt/@/home
+btrfs subvolume create /mnt/@/opt
+btrfs subvolume create /mnt/@/root
+btrfs subvolume create /mnt/@/srv
+btrfs subvolume create /mnt/@/tmp
+mkdir /mnt/@/usr/
+btrfs subvolume create /mnt/@/usr/local
+btrfs subvolume create /mnt/@/var