Skip to content
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

Merged
merged 2 commits into from
Jun 26, 2019

Conversation

stepanblyschak
Copy link
Contributor

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

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>
;;
fastfast)
case "$(cat /proc/cmdline)" in
*fastfast*)
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 25, 2019

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

if [ -e /var/warmboot/warm-starting ]; then
FASTFAST_REBOOT='yes'
fi
;;
*fast*)
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 25, 2019

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:

  1. *SONIC_BOOT_TYPE=fast*
  2. *fast-reboot* #Closed

Copy link
Contributor

@qiluo-msft qiluo-msft left a 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>
@qiluo-msft qiluo-msft merged commit 610048b into sonic-net:master Jun 26, 2019
qiluo-msft pushed a commit that referenced this pull request Jun 26, 2019
* [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
qiluo-msft pushed a commit that referenced this pull request Jun 26, 2019
* [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
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
…-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants