[Juniper][QFX5210] Fixing a few platform issues (#4857)
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>
This commit is contained in:
parent
1c32933c7d
commit
dd4cf912a6
@ -28,4 +28,5 @@ if [ -f $FIRST_BOOT_FILE ]; then
|
|||||||
# Creating the UEFI entry for the first time.
|
# Creating the UEFI entry for the first time.
|
||||||
efibootmgr -c -L "SONiC" -l "\EFI\BOOT\BOOTX64.EFI" > /var/tmp/efi_log 2>&1
|
efibootmgr -c -L "SONiC" -l "\EFI\BOOT\BOOTX64.EFI" > /var/tmp/efi_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
rm -rf /sys/fs/pstore/*
|
||||||
fi
|
fi
|
||||||
|
@ -338,14 +338,12 @@ def system_ready():
|
|||||||
|
|
||||||
def do_install():
|
def do_install():
|
||||||
logging.info('Checking system....')
|
logging.info('Checking system....')
|
||||||
if driver_check() == False:
|
|
||||||
logging.info('No driver, installing....')
|
|
||||||
status = driver_install()
|
status = driver_install()
|
||||||
if status:
|
if status:
|
||||||
if FORCE == 0:
|
if FORCE == 0:
|
||||||
return status
|
return status
|
||||||
else:
|
|
||||||
print PROJECT_NAME.upper()+" drivers detected...."
|
|
||||||
if not device_exist():
|
if not device_exist():
|
||||||
logging.info('No device, installing....')
|
logging.info('No device, installing....')
|
||||||
status = device_install()
|
status = device_install()
|
||||||
@ -354,6 +352,7 @@ def do_install():
|
|||||||
return status
|
return status
|
||||||
else:
|
else:
|
||||||
print PROJECT_NAME.upper()+" devices detected...."
|
print PROJECT_NAME.upper()+" devices detected...."
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def do_uninstall():
|
def do_uninstall():
|
||||||
|
Loading…
Reference in New Issue
Block a user