diff options
author | Georg Pfuetzenreuter | 2022-11-29 12:27:06 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-11-29 12:27:06 +0100 |
commit | 15042704b931e02b4dbcfcee1d0dab586c4c16ef (patch) | |
tree | 9b3dd3d7de0ef6fcd28fb5fa1f6049605c1beb8c /mountsubvols.sh | |
download | opensuse-bootstrap-15042704b931e02b4dbcfcee1d0dab586c4c16ef.tar.gz opensuse-bootstrap-15042704b931e02b4dbcfcee1d0dab586c4c16ef.tar.bz2 opensuse-bootstrap-15042704b931e02b4dbcfcee1d0dab586c4c16ef.zip |
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'mountsubvols.sh')
-rwxr-xr-x | mountsubvols.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |