From 0f246af684ad34d75b12723378af4d763027d620 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:00:39 -0400 Subject: [PATCH] fix(sztp): map /etc/os-release for correct OS reporting Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- sztp.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sztp.md b/sztp.md index 9ab1731..9b95fa6 100644 --- a/sztp.md +++ b/sztp.md @@ -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