-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix fast reboot compatibility #3083
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,14 @@ function updateHostName() | |
function getBootType() | ||
{ | ||
local BOOT_TYPE | ||
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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Be more specific |
||
TYPE='warm' | ||
;; | ||
fastfast) | ||
*fastfast*) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Be more specific |
||
TYPE='fastfast' | ||
;; | ||
fast*) | ||
*fast*) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This one is also too general. We can match for 2 patterns:
|
||
TYPE='fast' | ||
;; | ||
*) | ||
|
@@ -167,7 +167,7 @@ start() { | |
echo "Creating new {{docker_container_name}} container with HWSKU $HWSKU" | ||
{%- endif %} | ||
{%- if sonic_asic_platform == "mellanox" %} | ||
# TODO: Mellanox will remove the --tmpfs exception after SDK socket path changed in new SDK version | ||
# TODO: Mellanox will remove the --tmpfs exception after SDK socket path changed in new SDK version | ||
{%- endif %} | ||
docker create {{docker_image_run_opt}} \ | ||
{%- if '--log-driver=json-file' in docker_image_run_opt or '--log-driver' not in docker_image_run_opt %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,14 +55,14 @@ function wait_for_database_service() | |
|
||
function getBootType() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Can we reuse the function in |
||
{ | ||
case "$(cat /proc/cmdline | grep -o 'SONIC_BOOT_TYPE=\S*' | cut -d'=' -f2)" in | ||
warm*) | ||
case "$(cat /proc/cmdline)" in | ||
*warm*) | ||
TYPE='warm' | ||
;; | ||
fastfast) | ||
*fastfast*) | ||
TYPE='fastfast' | ||
;; | ||
fast*) | ||
*fast*) | ||
TYPE='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.
This line can be removed. #Closed