-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Juniper][QFX5210]Adding the system reboot handler (#3599)
The following changes are done as part of this commit: - Adding the system reboot handler - Adding swizzle reset case for the reboot reason - Workaround for the boot problem from Golden bios - Adding the logging messages for platform scripts - EEPROM parsing and library routines
- Loading branch information
1 parent
07235d0
commit 6cb445c
Showing
6 changed files
with
429 additions
and
39 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...rm/broadcom/sonic-platform-modules-juniper/debian/sonic-platform-juniper-qfx5210.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
systemctl enable qfx5210-platform-init.service | ||
systemctl start qfx5210-platform-init.service | ||
|
||
# There are primary and secondary bios in qfx5210 platform. | ||
# There is a problem with bios which prevents the OS booting from the | ||
# secondary bios when the OS was installed using primary bios. | ||
# Secondary bios fails to detect the UEFI partition. Right now | ||
# the workaround is to have a folder structure /EFI/BOOT/BOOT64x.efi | ||
|
||
SONIC_VERSION=$(sonic-cfggen -y /etc/sonic/sonic_version.yml -v build_version) | ||
FIRST_BOOT_FILE="/host/image-${SONIC_VERSION}/platform/firsttime" | ||
|
||
if [ -f $FIRST_BOOT_FILE ]; then | ||
mkdir /tmp/sda1 | ||
mount /dev/sda1 /tmp/sda1 | ||
cd /tmp/sda1/EFI | ||
mkdir BOOT > /dev/null 2>&1 | ||
cp SONiC-OS/grubx64.efi BOOT/BOOTX64.EFI | ||
cd /tmp | ||
umount sda1 | ||
efibootmgr -c -L "SONiC" -l "\EFI\BOOT\BOOTX64.EFI" > /dev/null 2>&1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.