opensuse-bootstrap/mountsubvols.sh

12 lines
459 B
Bash
Raw Permalink Normal View History

#!/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