[aboot-image]: Skip arista-hook and arista-convertfs for fast/warm-reboot (#3242)

This commit is contained in:
byu343 2019-07-31 14:20:17 -07:00 committed by lguohan
parent ff8e34463d
commit 6add9445c8
2 changed files with 9 additions and 1 deletions

View File

@ -130,6 +130,10 @@ for x in "$@"; do
x1="${x#loop=}"
image_dir="${x1%/*}"
;;
SONIC_BOOT_TYPE=warm*|SONIC_BOOT_TYPE=fast*)
# Skip this script for warm-reboot and fast-reboot
exit 0
;;
esac
done

View File

@ -41,6 +41,10 @@ for x in "$@"; do
x1="${x#loop=}"
image_dir="${x1%/*}"
;;
SONIC_BOOT_TYPE=warm*|SONIC_BOOT_TYPE=fast*)
# Skip this script for warm-reboot and fast-reboot
exit 0
;;
esac
done