-
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
[installer]: support new onie machine.conf format #1468
Conversation
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.
As comment
installer/x86_64/install.sh
Outdated
if [ -f /etc/machine-build.conf ]; then | ||
# onie_ variable are generate at runtime. | ||
# they are no longer hardcoded in /etc/machine.conf | ||
set | grep onie_ > $demo_mnt/machine.conf |
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.
Why use 'set' instead of 'env'?
Suggest grep 'onie_' at the line beginning. Maybe
env | grep ^onie_
Not sure it is available in ONIE environment.
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.
since the variables are not exported, so they are not env
onie_* variable are generated at runtime in /etc/machine.conf. We can no longer copy the static machine.conf into sonic image.
Signed-off-by: Guohan Lu <gulv@microsoft.com>
/host/machine.conf is incorrent for other application. Please remove quote. |
9e740759c370645b4367acf22856aebcfb7fce45 (HEAD -> 201911, origin/201911) [201911][multi asic] show ip bgp summary changes for bgp mon (#1483) fa07245786df11e6df902c33fcd9c7115a7c5380 [CLI][techsupport] Merge 'show techsupport' changes from master (#1468) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
…tically (#21001) #### Why I did it src/sonic-sairedis ``` * e7dc0d2b - (HEAD -> 202405, origin/202405) [202405] Fix compilation error on Buster (#1483) (18 hours ago) [Junchao-Mellanox] * 06d34610 - Support SAI_QUEUE_ATTR_TYPE on vs platform simulating MLNX2700 (#1459) (6 days ago) [Stephen Sun] * 0bd015e3 - Do not poll counters in bulk mode during initialization for objects that support bulk per CLI option (#1437) (8 days ago) [Stephen Sun] * 497bd053 - [fastboot] Notify SAI that fastboot is done (#1396) (#1468) (8 days ago) [Junchao-Mellanox] ``` #### How I did it #### How to verify it #### Description for the changelog
Why I did it e7dc0d2b (HEAD, origin/202405) [202405] Fix compilation error on Buster (#1483) 06d34610 Support SAI_QUEUE_ATTR_TYPE on vs platform simulating MLNX2700 (#1459) 0bd015e3 Do not poll counters in bulk mode during initialization for objects that support bulk per CLI option (#1437) 497bd053 [fastboot] Notify SAI that fastboot is done (#1396) (#1468) PR #21001 raised by automation failed at PR checker. The issue has been fixed and raised a new PR to advance pointer to sonic-sairedis repo.
onie_* variable are generated at runtime in /etc/machine.conf.
We can no longer copy the static machine.conf into sonic image.
- What I did
support new onie machine.conf format
- How I did it
export the onie_* varilable into sonic static machine.conf
- How to verify it
alphanetwork validated.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)