From 2857708551a7318a9abb4f959bb119cf3a7a4279 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:42:53 -0400 Subject: [PATCH] fix: pass real os-release file to container Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- scripts/run_agent.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/run_agent.sh b/scripts/run_agent.sh index ff0c2a5a..12eb1b90 100755 --- a/scripts/run_agent.sh +++ b/scripts/run_agent.sh @@ -18,6 +18,7 @@ ls -l /mnt/ # run docker (not compose) in host network DHCLIENT_LEASE_FILE=/var/lib/NetworkManager/dhclient-eth0.lease docker run --rm -it --network=host -v /mnt/:/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 \ ${DOCKER_SZTP_IMAGE} \ /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