Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
77 lines (62 sloc) 3.03 KB
# Additional configuration for erlinit
#
# To override the settings in this file, see
# https://hexdocs.pm/nerves/advanced-configuration.html#overriding-erlinit-config-from-mix-config.
#
# Turn on the debug prints
#-v
# Specify where erlinit should send the IEx prompt. Only one may be enabled at
# a time.
# -c ttyAMA0 # UART pins on the GPIO connector
-c tty1 # HDMI output
# If more than one tty are available, always warn if the user is looking at the
# wrong one.
--warn-unused-tty
# Use nbtty to improve terminal handling on serial ports. It's a noop on HDMI.
-s "/usr/bin/nbtty"
# There's a call to getrandom(2) when loading the crypto NIF that's before
# nerves_runtime can start rngd. This syscall can block the BEAM indefinitely
# if there's not enough entropy in the kernel. We have not observed blocking on
# this platform. However, we don't know that getrandom(2) will always have
# enough entropy, so start rngd here to be safe.
--pre-run-exec /usr/sbin/rngd
# Specify the user and group IDs for the Erlang VM
#--uid 100
#--gid 200
# Uncomment to ensure that the system clock is set to at least the Nerves
# System's build date/time. If you enable this, you'll still need to use NTP or
# another mechanism to set the clock, but it won't be decades off.
#--update-clock
# Uncomment to hang the board rather than rebooting when Erlang exits
# NOTE: Do not enable on production boards
#--hang-on-exit
# Change the graceful shutdown time. If 10 seconds isn't long enough between
# calling "poweroff", "reboot", or "halt" and :init.stop/0 stopping all OTP
# applications, enable this option with a new timeout in milliseconds.
#--graceful-shutdown-timeout 15000
# Optionally run a program if the Erlang VM exits
#--run-on-exit /bin/sh
# Enable UTF-8 filename handling in Erlang and custom inet configuration
-e LANG=en_US.UTF-8;LANGUAGE=en;ERL_INETRC=/etc/erl_inetrc;ERL_CRASH_DUMP=/root/crash.dump
# Mount the application partition (run "man fstab" for field names)
# NOTE: This must match the location in the fwup.conf. If it doesn't the system
# will probably still work fine, but you won't get shell history since
# shoehorn/nerves_runtime can't mount the application filesystem before
# the history is loaded. If this mount fails due to corruption, etc.,
# nerves_runtime will auto-format it. Your applications will need to handle
# initializing any expected files and folders.
-m /dev/mmcblk0p1:/boot:vfat:ro,nodev,noexec,nosuid:
-m /dev/mmcblk0p3:/root:ext4:nodev:
-m pstore:/sys/fs/pstore:pstore:nodev,noexec,nosuid:
-m tmpfs:/sys/fs/cgroup:tmpfs:nodev,noexec,nosuid:mode=755,size=1024k
-m cpu:/sys/fs/cgroup/cpu:cgroup:nodev,noexec,nosuid:cpu
# Erlang release search path
-r /srv/erlang
# Assign a hostname of the form "nerves-<serial_number>".
# See /etc/boardid.config for locating the serial number.
-d /usr/bin/boardid
-n nerves-%s
# If using shoehorn (https://github.com/nerves-project/shoehorn), start the
# shoehorn OTP release up first. If shoehorn isn't around, erlinit fails back
# to the main OTP release.
--boot shoehorn