X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mount-latest-subvol;h=93a085a8e20e764e85d43153480f1a58b924507d;hb=a38cfd0b1342ebe6ed9fcdb4514f88f24d098a12;hp=d2e41f33f7e4f65388019d28b068d8860ebad8aa;hpb=ce4cacd36c5b5babeea85d0f93771017e6169180;p=distro-setup diff --git a/mount-latest-subvol b/mount-latest-subvol index d2e41f3..93a085a 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -28,8 +28,8 @@ Usage: ${0##*/} [OPTIONS] -v|--verbose Be more verbose -Note, at source location, intentionally not executable, run and read -install-my-scripts. +Note: In git this is not not executable because it's meant to be installed +using ./install-my-scripts Note: Uses util-linux getopt option parsing: spaces between args and options, short options can be combined, options before args. @@ -243,6 +243,21 @@ $crypt_dev /q btrfs noatime,subvol=q,gid=1000$mopts 0 0 EOF fi +f=(/mnt/root/btrbk/qr.*); f=${f[0]} +if [[ -e $f ]]; then + fstab <