iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
organize / cleanup
[distro-setup]
/
mount-latest-subvol
diff --git
a/mount-latest-subvol
b/mount-latest-subvol
index be239ed139de5c2405125612ebeeaf374227224d..d7be613c763d122d0259b5a434ca4a161f599627 100644
(file)
--- a/
mount-latest-subvol
+++ b/
mount-latest-subvol
@@
-117,10
+117,14
@@
EOF
shopt -s nullglob
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
f=(/mnt/root/btrbk/q.*)
if [[ -e $f ]]; then
fstab <<EOF
-$first_root_crypt /q btrfs noatime,subvol=q 0 0
+$first_root_crypt /q btrfs noatime,subvol=q
,gid=1000
0 0
/q/p /p none bind 0 0
EOF
fi
/q/p /p none bind 0 0
EOF
fi