-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[initramfs]: SSD firmware upgrade in initramfs #10748
[initramfs]: SSD firmware upgrade in initramfs #10748
Conversation
@@ -114,6 +114,9 @@ migrate_nos_configuration() | |||
# remove nos-config-part from cmdline | |||
sed -r -i.bak "s/nos-config-part=[^[:space:]]+//" /host/grub/grub.cfg | |||
|
|||
# remove ssd-upgrader-part from cmdline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please add a comment here to show what exactly the string replacement is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this command, the ssd-upgrader-part
option is completely removed from the command line (replaced with an empty string) similar to nos-config-part.
Please let me know if the comment has to updated with 'empty string' in place of 'remove'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, current comment matches the ode, then I am fine with it.
…tion with SONiC partition (#2150) What I did Add new option "-u" in ‘fast-reboot’ script, to add the “ssd-upgrader-part” boot option with SONiC partition and filesystem type. Required by: sonic-net/sonic-buildimage#10748 How I did it Included a new option "-u" in fast-reboot script. If the option '-u' is specified, add "ssd-upgrader-part" with the SONiC partition and filesystem to the boot options to be used with kexec.
…tion with SONiC partition (#2150) What I did Add new option "-u" in ‘fast-reboot’ script, to add the “ssd-upgrader-part” boot option with SONiC partition and filesystem type. Required by: sonic-net/sonic-buildimage#10748 How I did it Included a new option "-u" in fast-reboot script. If the option '-u' is specified, add "ssd-upgrader-part" with the SONiC partition and filesystem to the boot options to be used with kexec.
Why I did it
To upgrade SSD firmware in initramfs while rebooting from SONiC to SONiC and during NOS to SONiC migration.
How I did it
New option 'ssd-upgrader-part’ is introduced in grub command line, to indicate the partition and its filesystem type in which the SSD firmware updater is present. ‘ssd-upgrader-part’ syntax is
ssd-upgrader-part=<partition>,<filesystem type>
. Example: ssd-upgrader-part=/dev/sda8,ext4A new initramfs script ‘ssd-upgrade’ is included in init-premount and it invokes the SSD firmware updater (ssd-fw-upgrade) present in the partition indicated by the boot option 'ssd-upgrader-part'
How to verify it
UT logs: Dell_S6100_SSD_upgrade_in_initramfs_logs.txt
Which release branch to backport (provide reason below if selected)
Description for the changelog
[initramfs]: SSD firmware upgrade in initramfs
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)