From 15042704b931e02b4dbcfcee1d0dab586c4c16ef Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Tue, 29 Nov 2022 12:27:06 +0100 Subject: Init Signed-off-by: Georg Pfuetzenreuter --- mountsubvols.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 mountsubvols.sh (limited to 'mountsubvols.sh') diff --git a/mountsubvols.sh b/mountsubvols.sh new file mode 100755 index 0000000..0a653b2 --- /dev/null +++ b/mountsubvols.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -Ceux + +mount /dev/mapper/cr_root /mnt/.snapshots -o subvol=@/.snapshots +mount /dev/mapper/cr_root /mnt/home -o subvol=@/home +mount /dev/mapper/cr_root /mnt/opt -o subvol=@/opt +mount /dev/mapper/cr_root /mnt/root -o subvol=@/root +mount /dev/mapper/cr_root /mnt/srv -o subvol=@/srv +mount /dev/mapper/cr_root /mnt/tmp -o subvol=@/tmp +mount /dev/mapper/cr_root /mnt/usr/local -o subvol=@/usr/local +mount /dev/mapper/cr_root /mnt/var -o subvol=@/var -- cgit v1.2.3