mlocate/mlocate-run-updatedb
Petr Šabata 3201610638 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/mlocate#714b702b258bbee1a328c1838f3c0e31f7c34ea1
2020-10-15 19:49:34 +02:00

5 lines
138 B
Bash

#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2 != "zfs" { print $2 }')
/usr/bin/updatedb -f "$nodevs"