Fix parsing error in upgrade-script 23
This commit fixes a parsing error in upgrade-script 23-resize-systemcontroller-filesystems.sh which leads to an error during activate step for System Controller. Test Plan: PASS: Check all the "list" commands output manually in a stx11 SC. PASS: Finish activate in upgrade from stx10 to stx11 in a SC. Story: 2011357 Task: 52494 Change-Id: Icaa2594c9b108d64070f2e2224a73e821cc3cf6d Signed-off-by: Luis Eduardo Bonatti <luizeduardo.bonatti@windriver.com>
This commit is contained in:

committed by
Luis Eduardo Bonatti

parent
7d119bdca8
commit
2d2613ea68
@@ -86,7 +86,7 @@ function resize_platform_controllerfs {
|
||||
log "Retry $RETRY of $RESIZE_CHECK_MAX_RETRIES, checking if platform filesystem is resized and available..."
|
||||
OUTPUT=$(system controllerfs-list --column name --column size --column state | grep platform)
|
||||
_CURRENT_PLATFORM_SIZE=$(echo $OUTPUT | awk '{ print $4; }')
|
||||
_CURRENT_PLATFORM_STATE=$(echo $OUTPUT | awk '{ print $6; }')
|
||||
_CURRENT_PLATFORM_STATE=$(echo $OUTPUT | awk -F"'" '{ print $4 }')
|
||||
log "Current platform fs size/state: ${_CURRENT_PLATFORM_SIZE}/${_CURRENT_PLATFORM_STATE}"
|
||||
if [[ ($_CURRENT_PLATFORM_SIZE -eq $EXPANDED_PLATFORM_SIZE) && ($_CURRENT_PLATFORM_STATE == "available") ]]; then
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user