From 6add9445c849c7d00bdad36f2234fe3c58e410f3 Mon Sep 17 00:00:00 2001 From: byu343 Date: Wed, 31 Jul 2019 14:20:17 -0700 Subject: [PATCH] [aboot-image]: Skip arista-hook and arista-convertfs for fast/warm-reboot (#3242) --- files/initramfs-tools/arista-convertfs.j2 | 6 +++++- files/initramfs-tools/arista-hook | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/files/initramfs-tools/arista-convertfs.j2 b/files/initramfs-tools/arista-convertfs.j2 index 7b315b7725..2ed51c0220 100644 --- a/files/initramfs-tools/arista-convertfs.j2 +++ b/files/initramfs-tools/arista-convertfs.j2 @@ -130,10 +130,14 @@ 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 -#Check aboot +# Check aboot [ -z "$aboot_flag" ] && exit 0 # Get flash dev name diff --git a/files/initramfs-tools/arista-hook b/files/initramfs-tools/arista-hook index 654fe88baa..521e38435b 100644 --- a/files/initramfs-tools/arista-hook +++ b/files/initramfs-tools/arista-hook @@ -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