Skip to content

[build] Remove sudo calls from build process#2015

Merged
lguohan merged 2 commits intosonic-net:masterfrom
jleveque:remove_sudo_from_build
Sep 5, 2018
Merged

[build] Remove sudo calls from build process#2015
lguohan merged 2 commits intosonic-net:masterfrom
jleveque:remove_sudo_from_build

Conversation

@jleveque
Copy link
Copy Markdown
Contributor

@jleveque jleveque commented Sep 5, 2018

- What I did/How I did it

  • Remove sudo modprobe overlay calls from Makefile.work. If user had not configured passwordless sudo on their build system, running make would result in the build stopping to prompt for sudo password multiple times.

  • In lieu of explicitly calling sudo modprobe overlay, I have added a check to determine whether the overlay module is loaded and will fail the build if not, printing the message, ERROR: Module 'overlay' not loaded. Try running 'sudo modprobe overlay'. I have also added an instruction to README.md to notify the user to manually run sudo modprobe overlay when setting up his/her build environment.

- How to verify it

  • Try building a SONiC image and verify there are no sudo password prompts.

@jleveque jleveque self-assigned this Sep 5, 2018
@jleveque jleveque requested review from lguohan and yxieca September 5, 2018 00:02
@lguohan lguohan merged commit 35d93f0 into sonic-net:master Sep 5, 2018
@jleveque jleveque deleted the remove_sudo_from_build branch September 5, 2018 18:01
prsunny added a commit that referenced this pull request Nov 19, 2021
c31a362 - 2021-11-18 : [202012][Mux orch] set default as standby, change mux orch priority (#2015) [Prince Sunny]
9a9e8e6 - 2021-11-18 : [202012] Check VS test failure (#2033) [Prince Sunny]
7eaabca - 2021-11-11 : [202012] Fix random failure in PR/CI build. (#2016) [Shilong Liu]
85230fe - 2021-11-04 : [orchagent] Fix group name of port-buffer-drop in flexcounterorch.cpp (#1967) [Junchao-Mellanox]
a55c2ca - 2021-11-03 : [teammgrd]: Handle LAGs cleanup gracefully on Warm/Fast reboot. (#1934) [Nazarii Hnydyn]
judyjoseph added a commit that referenced this pull request Jan 15, 2022
51712aa [build-failure-fix][GCU] Sort referrer paths alphabetically (#2015)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants