-case $HOSTNAME in
- treetowl|x2|frodo)
- fstab <<EOF
-$first_root_crypt /q btrfs noatime,subvol=q 0 0
-$first_root_crypt /o btrfs noatime,subvol=o 0 0
+
+shopt -s nullglob
+
+# ssh and probably some other things care about parent directory
+# ownership, and ssh doesn\'t allow any group writable parent
+# directories, so we are forced to use a directory structure similar
+# to home directories
+f=(/mnt/root/btrbk/q.*)
+if [[ -e $f ]]; then
+ fstab <<EOF
+$first_root_crypt /q btrfs noatime,subvol=q,gid=1000 0 0