Skip to content

Commit 0f246af

Browse files
authored
fix(sztp): map /etc/os-release for correct OS reporting
Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
1 parent f930f6e commit 0f246af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sztp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ root@bf2:~# grep bootstrap /etc/hosts
6969
Finally run SZTP agent/client:
7070

7171
```bash
72-
docker run --rm -it --network=host -v /mnt/:/mnt \
72+
docker run --rm -it --network=host \
73+
--mount type=bind,source=/mnt,target=/mnt \
74+
--mount type=bind,source=/etc/os-release,target=/etc/os-release \
7375
--mount type=bind,source=${DHCLIENT_LEASE_FILE},target=/var/lib/dhclient/dhclient.leases \
7476
ghcr.io/opiproject/opi-sztp-client:main \
7577
/opi-sztp-agent daemon --bootstrap-trust-anchor-cert /mnt/opi.pem --device-end-entity-cert /mnt/opi_cert.pem --device-private-key /mnt/opi_private_key.pem

0 commit comments

Comments
 (0)