From 9f561e0123b0a2266ca35442fefa5a9290d1e898 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 22:19:20 +0100 Subject: [PATCH] Ensure /home is indexed on Btrfs Closes #4292 Co-authored-by: @jorge-campo --- install/config/localdb.sh | 3 ++- migrations/1771622309 | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 migrations/1771622309 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