File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -169,3 +169,16 @@ file location by setting the environment variable
169
169
` NERVES_PROVISIONING=/path/to/provisioning.conf ` . The default provisioning.conf
170
170
will set the ` nerves_serial_number ` , if you override the location to this file,
171
171
you will be responsible for setting this yourself.
172
+
173
+ ## Hostname
174
+
175
+ By default the hostname will only include the last 4 digits of the board
176
+ identifier. If you would rather use the entire identifier, set the following
177
+ in your ` config/target.exs ` file:
178
+
179
+ ``` elixir
180
+ config :nerves ,
181
+ erlinit: [
182
+ uniqueid_exec: " boardid"
183
+ ]
184
+ ```
Original file line number Diff line number Diff line change
1
+ # Check if a serial number has been manually set with the nerves_serial_number
2
+ # U-Boot environment variable.
3
+ -b uboot_env -u nerves_serial_number
4
+
5
+ # Get the board identifier from the ATECC Trust&GO crypto chip if using the SOM.
6
+ -b atecc508a -X -a 0x35 -f /dev/i2c-0
7
+
8
+ # Fall back to using the MAC address.
9
+ -b macaddr
Original file line number Diff line number Diff line change 57
57
# Erlang release search path
58
58
-r /srv/erlang
59
59
60
- # Assign a unique hostname based on a board identifier. The logic is:
61
- # 1. Check the U-boot environment block for a key named "nerves_serial_number"
62
- # 2. Use the MAC address of the first Ethernet port.
63
- -d "/usr/bin/boardid -b uboot_env -u nerves_serial_number -b macaddr -n 4"
60
+ # Assign a unique hostname based on a board identifier.
61
+ # See `/etc/boardid.config` for how the identifier is determined.
62
+ -d /usr/bin/boardid -n 4
64
63
-n nerves-%s
65
64
66
65
# If using shoehorn (https://github.com/nerves-project/shoehorn), start the
You can’t perform that action at this time.
0 commit comments