解決 CentOS 7.x arm Cubie Truck autofs 無法自動掛載目錄的問題

在 Cubie Truck CentOS 7.x arm 啟用 autofs 服務後,發現一直無法自動掛載 NAS 分享的 NFS 服務。
# cd /mnt/nasnfs/bk
-bash: cd: /mnt/nasnfs/bk: No such file or directory

檢查 autofs 開機後是否有啟動
# systemctl is-enabled autofs
enabled

檢查 autofs 是否有正確啟動
# systemctl status autofs
● autofs.service – Automounts filesystems on demand
   Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2016-01-08 18:41:31 CST; 19min ago
 Main PID: 10463 (automount)
   CGroup: /system.slice/autofs.service
           mq10463 /usr/sbin/automount –pid-file /run/autofs.pid

Jan 08 18:41:30 bk systemd[1]: Starting Automounts filesystems on demand…
Jan 08 18:41:31 bk systemd[1]: Started Automounts filesystems on demand.[@more@]想要手動測試一下,所以尋找一下是否有 showmount 指令
# which showmount
/usr/bin/which: no showmount in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

補安裝 nfs-utils 套件
# yum install nfs-utils

問題就解決了,原來是少安裝了 nfs-utils 套件!