-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a rootfs overlay, drop to sh on exit
- Loading branch information
1 parent
10506c3
commit 9dd6fff
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Additional configuration for erlinit | ||
|
||
# Turn on the debug prints | ||
#-v | ||
|
||
# Specify the UART port that the shell should use. | ||
-c tty1 | ||
|
||
# If more than one tty are available, always warn if the user is looking at | ||
# the wrong one. | ||
--warn-unused-tty | ||
|
||
# Use dtach to capture the iex session so that it can be redirected | ||
# to the app's GUI | ||
#-s "/usr/bin/dtach -N /tmp/iex_prompt" | ||
|
||
# Specify the user and group IDs for the Erlang VM | ||
#--uid 100 | ||
#--gid 200 | ||
|
||
# Uncomment to hang the board rather than rebooting when Erlang exits | ||
#--hang-on-exit | ||
|
||
# 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 | ||
|
||
# Mount the application partition | ||
# See http://www.linuxfromscratch.org/lfs/view/6.3/chapter08/fstab.html about | ||
# ignoring warning the Linux kernel warning about using UTF8 with vfat. | ||
-m /dev/mmcblk0p3:/root:vfat:: | ||
|
||
# Erlang release search path | ||
-r /srv/erlang | ||
|
||
# Assign a unique hostname based on the board id | ||
-d "/usr/bin/boardid -b rpi -n 4" | ||
-n nerves-%.4s |