X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mount-latest-subvol;h=0e456a2407728610c3b77ad40af8572b4b85781e;hb=2632836241e21fb97fa826b64a1886353bacd84f;hp=bfe99f9a75e2091ae1d9df4bee75662abdf112c0;hpb=c5021d1e8ad29f946b28d7a22d959e691e28bf32;p=distro-setup diff --git a/mount-latest-subvol b/mount-latest-subvol index bfe99f9..0e456a2 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -382,7 +382,10 @@ for vol in ${all_vols[@]}; do ### end getting root_dir cd $root_dir - if [[ -e $vol && $vol != qd ]]; then + if [[ -e $vol ]]; then + if [[ $vol == qd ]]; then + m btrfs sub del qd + fi leaf=$vol.leaf.$(date +%Y-%m-%dT%H:%M:%S%z) m mv $vol $leaf m btrfs property set -ts $leaf ro true