summaryrefslogtreecommitdiff
path: root/mini/install.txt
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-09-17 00:23:47 +0200
committerChristoph Cullmann <cullmann@kde.org>2023-09-17 00:23:47 +0200
commitb0c5f1e67e5c352d2dbe43eaf136d49a086cd33f (patch)
treeb388abcaaa8540cc9eb421c422e7a243972a4b1d /mini/install.txt
parentf90169dc782f1441af9c044a7b849ff853246f74 (diff)
add vms backup
Diffstat (limited to 'mini/install.txt')
-rw-r--r--mini/install.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/mini/install.txt b/mini/install.txt
index b97ee60..adcac60 100644
--- a/mini/install.txt
+++ b/mini/install.txt
@@ -100,3 +100,33 @@ nixos-install --no-root-passwd --root /mnt
umount -Rl /mnt
cryptsetup luksClose crypt-system
+
+#
+# after install tasks for extra file systems
+#
+
+# create vms disk
+
+DD=/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F
+sgdisk --zap-all $DD
+blkdiscard -v $DD
+wipefs -a $DD
+
+sleep 5
+
+# create the crypto containers
+cryptsetup luksFormat --batch-mode --verify-passphrase $DD
+
+sleep 5
+
+# open them, set right options persistently
+cryptsetup luksOpen --allow-discards --perf-no_read_workqueue --perf-no_write_workqueue --persistent $DD crypt-vms
+
+sleep 5
+lsblk --fs
+
+# create btrfs with fast & strong checksumming and fast mounting
+mkfs.btrfs -f --csum xxhash --features block-group-tree /dev/mapper/crypt-vms
+
+sleep 5
+btrfs filesystem show