diff --git a/install/config/localdb.sh b/install/config/localdb.sh index 73721488..027128fb 100644 --- a/install/config/localdb.sh +++ b/install/config/localdb.sh @@ -1,2 +1,3 @@ -# Update localdb so that locate will find everything installed +# Ensure /home is indexed on Btrfs (subvolumes look like bind mounts) +sudo sed -i 's/PRUNE_BIND_MOUNTS.*=.*/PRUNE_BIND_MOUNTS = "no"/' /etc/updatedb.conf sudo updatedb diff --git a/migrations/1771622309 b/migrations/1771622309 new file mode 100644 index 00000000..7573323a --- /dev/null +++ b/migrations/1771622309 @@ -0,0 +1,3 @@ +echo "Fix locate not indexing home on Btrfs" +sudo sed -i 's/PRUNE_BIND_MOUNTS.*=.*/PRUNE_BIND_MOUNTS = "no"/' /etc/updatedb.conf +sudo updatedb