fix fast reboot compatibility#3083
Conversation
We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
|
Retest vs please |
| case "$(cat /proc/cmdline | grep -o 'SONIC_BOOT_TYPE=\S*' | cut -d'=' -f2)" in | ||
| warm*) | ||
| case "$(cat /proc/cmdline)" in | ||
| *warm*) |
There was a problem hiding this comment.
warm [](start = 5, length = 4)
Be more specific SONIC_BOOT_TYPE=warm #Closed
| TYPE='warm' | ||
| ;; | ||
| fastfast) | ||
| *fastfast*) |
There was a problem hiding this comment.
fastfast [](start = 5, length = 8)
Be more specific SONIC_BOOT_TYPE=fastfast #Closed
| TYPE='fastfast' | ||
| ;; | ||
| fast*) | ||
| *fast*) |
There was a problem hiding this comment.
fast [](start = 4, length = 6)
This one is also too general. We can match for 2 patterns:
*SONIC_BOOT_TYPE=fast**fast-reboot*#Closed
| @@ -34,14 +34,14 @@ function updateHostName() | |||
| function getBootType() | |||
| { | |||
| local BOOT_TYPE | |||
There was a problem hiding this comment.
local BOOT_TYPE [](start = 4, length = 15)
This line can be removed. #Closed
| @@ -55,14 +55,14 @@ function wait_for_database_service() | |||
|
|
|||
| function getBootType() | |||
There was a problem hiding this comment.
getBootType [](start = 9, length = 11)
Can we reuse the function in /usr/bin/syncd.sh? If not, make sure you share the exactly same code snippet, add code comments referring each other so we will not modify one without the other in future by mistake. #Closed
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
two files Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
fix fast reboot compatibility (sonic-net#3083)
* fix fast reboot compatibility We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot * handle review comments * add a comment that getBootType code snippet is shared between two files
* fix fast reboot compatibility We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot * handle review comments * add a comment that getBootType code snippet is shared between two files
1. squash changes of the following commits, as a series of cherry-pick will cause the Change-Id checker to fail, and hence unable to push to Gerrit * 282180c Added S5232 led bin files missed from Azure branch * 94b71b3 fix fast reboot compatibility (sonic-net#3083) * b3a5432 Changes fix fpga driver crash Changes to support 10G EEPROM read. Changes to fix FPGA version read * 3d73b8d Deprecate unwanted file which is not being used * fe2b6b9 Fixing Z9332f lanes as broadcom SAI is fixed to return correct lanes * fd2b0d8 Changes to fix 10G ports for Z9264f Changes to fix show environment for Z9264f 2. revert the common code changes from '94b71b31 fix fast reboot ...' * files/build_templates/docker_image_ctl.j2 * files/scripts/syncd.sh Change-Id: I7062bad65dd1c102d411a47f94ebb952245327ff
We should handle both cases for backward-compatible with 201803:
Signed-off-by: Stepan Blyschak stepanb@mellanox.com
NOTE : DEPENDS on sonic-net/sonic-sairedis#480
- What I did
- How I did it
- How to verify it
Run 201803 (157th public jenkins image + #3077) -> 201811 (73th public jenkins image + this PR)
Run 201811 (73th public jenkins image + this PR) fast reboot test
Run 201811 (73th public jenkins image + this PR) warm reboot test
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)