Skip to content

Commit

Permalink
fix(sztp): map /etc/os-release for correct OS reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Jun 7, 2024
1 parent f930f6e commit 0f246af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sztp.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ root@bf2:~# grep bootstrap /etc/hosts
Finally run SZTP agent/client:

```bash
docker run --rm -it --network=host -v /mnt/:/mnt \
docker run --rm -it --network=host \
--mount type=bind,source=/mnt,target=/mnt \
--mount type=bind,source=/etc/os-release,target=/etc/os-release \
--mount type=bind,source=${DHCLIENT_LEASE_FILE},target=/var/lib/dhclient/dhclient.leases \
ghcr.io/opiproject/opi-sztp-client:main \
/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
Expand Down

0 comments on commit 0f246af

Please sign in to comment.