Skip to content

Commit

Permalink
[Juniper][QFX5210] Fixing a few platform issues (#4857)
Browse files Browse the repository at this point in the history
This patch addresses the following issues:
 1) Platform drivers were not loading in the latest images. Fixed
    the intialization script to make sure that all the drivers are
    loaded.
 2) Getting rid of "pstore: crypto_comp_decompress failed, ret = -22!"
    messages during the kernel boot, after moving to 4.19 kernel. The
    solution is to remove the files under '/sys/fs/pstore' directory.

Signed-off-by: Ciju Rajan K <crajank@juniper.net>
  • Loading branch information
ciju-juniper authored Jun 28, 2020
1 parent 1c32933 commit dd4cf91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ if [ -f $FIRST_BOOT_FILE ]; then
# Creating the UEFI entry for the first time.
efibootmgr -c -L "SONiC" -l "\EFI\BOOT\BOOTX64.EFI" > /var/tmp/efi_log 2>&1
fi
rm -rf /sys/fs/pstore/*
fi
Original file line number Diff line number Diff line change
Expand Up @@ -338,22 +338,21 @@ def system_ready():

def do_install():
logging.info('Checking system....')
if driver_check() == False:
logging.info('No driver, installing....')
status = driver_install()
if status:
if FORCE == 0:
return status
else:
print PROJECT_NAME.upper()+" drivers detected...."

status = driver_install()
if status:
if FORCE == 0:
return status

if not device_exist():
logging.info('No device, installing....')
status = device_install()
if status:
if FORCE == 0:
return status
else:
print PROJECT_NAME.upper()+" devices detected...."
print PROJECT_NAME.upper()+" devices detected...."

return

def do_uninstall():
Expand Down

0 comments on commit dd4cf91

Please sign in to comment.