diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index 2afc381cb96f..788074db1a6f 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -7,15 +7,15 @@ function getMountPoint() function getBootType() { - local BOOT_TYPE - case "$(cat /proc/cmdline | grep -o 'SONIC_BOOT_TYPE=\S*' | cut -d'=' -f2)" in - warm*) + # same code snippet in files/scripts/syncd.sh + case "$(cat /proc/cmdline)" in + *SONIC_BOOT_TYPE=warm*) TYPE='warm' ;; - fastfast) + *SONIC_BOOT_TYPE=fastfast*) TYPE='fastfast' ;; - fast*) + *SONIC_BOOT_TYPE=fast*|*fast-reboot*) TYPE='fast' ;; *) diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index 0a2b9aefd0df..11d195348882 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -55,14 +55,15 @@ function wait_for_database_service() function getBootType() { - case "$(cat /proc/cmdline | grep -o 'SONIC_BOOT_TYPE=\S*' | cut -d'=' -f2)" in - warm*) + # same code snippet in files/build_templates/docker_image_ctl.j2 + case "$(cat /proc/cmdline)" in + *SONIC_BOOT_TYPE=warm*) TYPE='warm' ;; - fastfast) + *SONIC_BOOT_TYPE=fastfast*) TYPE='fastfast' ;; - fast*) + *SONIC_BOOT_TYPE=fast*|*fast-reboot*) TYPE='fast' ;; *) diff --git a/src/sonic-sairedis b/src/sonic-sairedis index d027eae034d5..e19051176861 160000 --- a/src/sonic-sairedis +++ b/src/sonic-sairedis @@ -1 +1 @@ -Subproject commit d027eae034d538febe9fdb62682745a6b39a79ee +Subproject commit e190511768613d8abf5e7ca865af7c64d80279a5