From dc747247d14a20a08596daa2f3fd9c1077e926fd Mon Sep 17 00:00:00 2001 From: Michel Moriniaux Date: Tue, 2 Jul 2019 11:52:43 -0700 Subject: [PATCH] [ARISTA] adding 7060_cs32s to eMMC exclusions (#2982) * [ARISTA] adding 7060_cs32s to eMMC exclusions Following PR 2774 we added the 7060-cx32s according to the guidelines of PR 2780 This adds the 7060-cx32s to the list f devices that mount /var/log as a tmpfs to mitigate eMMC wearout Signed-off-by: Michel Moriniaux * [ARISTA] adding 7060_cs32s to eMMC exclusions Following PR 2774 we added the 7060-cx32s according to the guidelines of PR 2780 This adds the 7060-cx32s to the list f devices that mount /var/log as a tmpfs to mitigate eMMC wearout Signed-off-by: Michel Moriniaux --- files/initramfs-tools/union-mount.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/initramfs-tools/union-mount.j2 b/files/initramfs-tools/union-mount.j2 index 9b4c52d905..4a0863c42a 100644 --- a/files/initramfs-tools/union-mount.j2 +++ b/files/initramfs-tools/union-mount.j2 @@ -17,8 +17,10 @@ set_tmpfs_log_partition_size() # NOTE: certain platforms, when reaching initramfs stage, have a small # limit of mounting tmpfs partition, potentially due to amount - # of RAM available in this stage. e.g. Arista 7050 QX32 + # of RAM available in this stage. e.g. Arista 7050-qx32[s] and 7060-cx32s [ X"$aboot_platform" = X"x86_64-arista_7050_qx32" ] && return + [ X"$aboot_platform" = X"x86_64-arista_7050_qx32s" ] && return + [ X"$aboot_platform" = X"x86_64-arista_7060_cx32s" ] && return # set varlogsize to existing var-log.ext4 size if [ -f ${rootmnt}/host/disk-img/var-log.ext4 ]; then @@ -56,7 +58,8 @@ onie_platform="" aboot_platform="" . ${rootmnt}/host/machine.conf if [ X"$aboot_platform" = X"x86_64-arista_7050_qx32" ] || - [ X"$aboot_platform" = X"x86_64-arista_7050_qx32s" ] + [ X"$aboot_platform" = X"x86_64-arista_7050_qx32s" ] || + [ X"$aboot_platform" = X"x86_64-arista_7060_cx32s" ] then set_tmpfs_log_partition_size mount -t tmpfs -o rw,nosuid,nodev,size=${varlogsize}M tmpfs ${rootmnt}/var/log