dev-mode: Run kolla_install_projects using sudo

Since packages are installed using root during image build - we
need to use sudo when updating those packages when using dev-mode.

Change-Id: Idf14e334d50abeb1719563b1733af0b8425b3b55
This commit is contained in:
Michal Nasiadka 2024-09-26 13:39:19 +02:00
parent 8f0a3b5871
commit 0644a5df86
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ ARGS=""
sudo kolla_copy_cacerts
# Install projects that are in /dev-mode
kolla_install_projects
sudo kolla_install_projects
if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
# Run additional commands if present

View File

@ -20,4 +20,7 @@ root ALL=(ALL) ALL
# Copy custom CA certificates to containers
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_copy_cacerts
# Install projects in dev-mode
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_install_projects
#includedir /etc/sudoers.d