-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[syncd_init_common.sh] fix fast reboot backwards compatibility #480
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>
syncd/scripts/syncd_init_common.sh
Outdated
;; | ||
fastfast) | ||
case "$(cat /proc/cmdline)" in | ||
*fastfast*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fastfast [](start = 3, length = 8)
Be more specific SONIC_BOOT_TYPE=fastfast
#Closed
syncd/scripts/syncd_init_common.sh
Outdated
if [ -e /var/warmboot/warm-starting ]; then | ||
FASTFAST_REBOOT='yes' | ||
fi | ||
;; | ||
*fast*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast [](start = 3, length = 4)
This one is also too general. We can match for 2 patterns:
*SONIC_BOOT_TYPE=fast*
*fast-reboot*
#Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As comments
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
* [syncd_init_common.sh] fix fast reboot backwards compatibility We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot * handle review comments
* [syncd_init_common.sh] fix fast reboot backwards compatibility We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot * handle review comments
…-net#480) * [syncd_init_common.sh] fix fast reboot backwards compatibility We should handle both cases for backward-compatible with 201803: - fast-reboot - SONIC_BOOT_TYPE=fast-reboot * handle review comments
We should handle both cases for backward-compatible with 201803:
Signed-off-by: Stepan Blyschak stepanb@mellanox.com