[pull] master from Azure:master#1497
Merged
pull[bot] merged 2 commits intomudsut4ke:masterfrom Apr 12, 2021
Merged
Conversation
This improvement reads current SONiC version directly from `/proc/cmdline`. it supports `grub/aboot/uboot` bootloaders. **Code snippet**: ```bash cat /proc/cmdline | sed -n 's/^.*loop=\/*image-\(\S\+\)\/.*$/\1/p' ``` **Description**: ``` -n don't print lines s substitute ^.* matches anything before the <image_version> loop= matches <loop> kernel parameter \/*image- matches <image_version> prefix \(\S\+\) matches <image_version> group and assigns it to \1 \/.*$ matches anything after the <image_version> \1 replace everything with <image_version> p print it ``` closes #6267 #### Why I did it * To fix #6267 #### How I did it * Fixed installer scripts #### How to verify it 1. Write invalid SONiC version to sonic_version.yml 2. Run SONiC-To-SONiC update
pariwat
pushed a commit
to pariwat/sonic-buildimage
that referenced
this pull request
Sep 10, 2021
Updated with following commits: 19d4042 - 2021-03-16 : Add self timeout and crash if exceeded. (mudsut4ke#1502) [Renuka Manavalan] aa71231 - 2021-03-16 : [reboot]: Stop mux before reboot on dual ToR (mudsut4ke#1500) [Lawrence Lee] fbad274 - 2021-03-16 : Add 'show' and 'clear' command for PG drop (mudsut4ke#1461) [Andriy Yurkiv] 0de99c3 - 2021-03-12 : [decode-syseeprom] When reading from DB, display CRC-32 and all Vendor Extensions (mudsut4ke#1497) [Joe LeVeque] 569a079 - 2021-03-12 : [decode-syseeprom] When reading from DB, display CRC-32 and all Vendor Extensions (mudsut4ke#1497) [Joe LeVeque] 47d1a14 - 2021-03-12 : [generate-dump] Remove Arista specific logic (mudsut4ke#1482) [Samuel Angebault] 1260f90 - 2021-03-12 : [warm-reboot]: Check empty key before issuing redis hget (mudsut4ke#1496) [Vaibhav Hemant Dixit]
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )