Skip to content
Snippets Groups Projects
Commit 6866fe8b authored by Piotr Kubik's avatar Piotr Kubik
Browse files

brcm63xx: upgrade-bundle: Log upgrade environment vars

Just to show that sysupgrade environment vars
are reachable in upgrade bundle.

refs #7306
parent 9ac634bb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment