Skip to content

Commit

Permalink
setup: remove autofs network dependency
Browse files Browse the repository at this point in the history
aufofs normally has a dependency on networking, because one of its
purposes is to automount NFS filesystems. TeslaUSB doesn't need that
though, and removing the dependencies speeds up TeslaUSB startup,
especially when booted outside of wifi range.
  • Loading branch information
marcone committed Dec 18, 2024
1 parent d42eef0 commit ed297c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup/pi/make-root-fs-readonly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,13 @@ fi
# newer than /run/systemd/systemd-units-load
touch -t 197001010000 /etc/fstab

# autofs by default has dependencies on various network services, because
# one of its purposes is to automount NFS filesystems.
# TeslaUSB doesn't use NFS though, and removing those dependencies speeds
# up TeslaUSB startup.
if [ ! -e /etc/systemd/system/autofs.service ]
then
grep -v '^Wants=\|^After=' /lib/systemd/system/autofs.service > /etc/systemd/system/autofs.service
fi

log_progress "done"

0 comments on commit ed297c5

Please sign in to comment.