From 5efc6e234726dd7f656dbec30c5f804b42c821db Mon Sep 17 00:00:00 2001 From: Garrick He Date: Mon, 31 Aug 2020 12:01:04 -0700 Subject: [PATCH] [build] - Create system eeprom file * Create the system eeprom JSON file that is used in the sonic-mgmt-framework KLISH CLI. Signed-off-by: Garrick He --- files/build_templates/docker_image_ctl.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index b844fb72b719..adbc725d9237 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -151,6 +151,10 @@ function postStartAction() docker cp $PSENSOR pmon:/usr/bin/ fi fi + + # Write contents of system EEPROM as JSON file + sudo /usr/bin/decode-syseeprom | /usr/bin/syseeprom-to-json | sudo tee /var/platform/syseeprom > /dev/null + {%- else %} : # nothing {%- endif %}