-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] quiet & speed up packages installation
Many apt and pip commands are called inside chroot during SONiC build process. Though they are not interactive, they generate a lot of scrolling output in the console that slows down the whole SONiC installation process. https://shallowsky.com/blog/linux/performance-of-scrolling-output.html Most of this output has no added value and makes troubleshooting more complex. It can be safely disabled by setting the right environment variables and/or options. Note they cannot completely prevent underlying calls to dpkg from displaying a few output. Only a redirection to /dev/null can prevent the dpdk output from being displayed Also since there are several wrappers to apt (apt-get/apt/aptitude) and since almost all of these apt calls are done inside chroot, it is preferable from a maintenance and efficiency perspective to - create a shell function with all these parameters to install packages - cascade contiguous chroot and apt or pip commands to avoid mutiple context allocations Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
- Loading branch information
1 parent
bb2e768
commit ac5ddf6
Showing
22 changed files
with
104 additions
and
116 deletions.
There are no files selected for viewing
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
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
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.