From 6866fe8b509b487f58edfc0c4878d42ae8528105 Mon Sep 17 00:00:00 2001 From: Piotr Kubik <piotr.kubik@iopsys.eu> Date: Fri, 11 Feb 2022 16:28:27 +0100 Subject: [PATCH] brcm63xx: upgrade-bundle: Log upgrade environment vars Just to show that sysupgrade environment vars are reachable in upgrade bundle. refs #7306 --- iopsys-brcm63xx-arm/image/upgrade-bundle/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iopsys-brcm63xx-arm/image/upgrade-bundle/upgrade b/iopsys-brcm63xx-arm/image/upgrade-bundle/upgrade index f4bb7e7d2..8c209a889 100755 --- a/iopsys-brcm63xx-arm/image/upgrade-bundle/upgrade +++ b/iopsys-brcm63xx-arm/image/upgrade-bundle/upgrade @@ -12,11 +12,17 @@ log() { do_pre_upgrade() { local image=$1 log "- pre_upgrade -" +# Log below left for informative and further use. +# UPGRADE_OPT_ variables set by sysupgrade should be visible here. + log "Upgrade options: " $(env | grep -E '^UPGRADE_OPT') } do_post_upgrade() { local image=$1 log "- post_upgrade -" +# Log below left for informative and further use. +# UPGRADE_OPT_ variables set by sysupgrade should be visible here. + log "Upgrade options: " $(env | grep -E '^UPGRADE_OPT') } case $invocation in -- GitLab