From cc825ff2fe34f31b8661d9b672ed87fe0fa07174 Mon Sep 17 00:00:00 2001 From: Howard Persh Date: Wed, 22 Jan 2020 10:02:28 -0800 Subject: [PATCH] [startup] Fixes issue with /var/platform directory not created (#4000) --- files/image_config/platform/rc.local | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/image_config/platform/rc.local b/files/image_config/platform/rc.local index d64ec1bb7916..e36b20950b42 100755 --- a/files/image_config/platform/rc.local +++ b/files/image_config/platform/rc.local @@ -328,10 +328,10 @@ if [ -f $FIRST_BOOT_FILE ]; then mv /host/grub.cfg /host/grub/grub.cfg fi + # Create dir where following scripts put their output files + mkdir -p /var/platform + firsttime_exit fi -# Create dir where following scripts put their output files -mkdir -p /var/platform - exit 0