]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/run-make: use SUDO variable for running llvm install script
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 15 Mar 2025 16:45:31 +0000 (12:45 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 15 Mar 2025 16:48:25 +0000 (12:48 -0400)
Match the behavior of install-deps.sh and use a SUDO env var that
may or may not actually invoke sudo. This is needed when building
a container image to build ceph as these scripts all run as root
already and sudo is not needed and thus not installed.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/script/run-make.sh

index 616a50cdefb9757cd510a8a8acaf61a381b22a0e..f7868a425667d5d9750f7f3860d25fda81ae1979 100755 (executable)
@@ -58,7 +58,8 @@ function prepare() {
                 ci_debug "Getting clang-19"
                 wget https://download.ceph.com/qa/llvm.sh
                 chmod +x llvm.sh
-                $DRY_RUN sudo ./llvm.sh 19
+                wrap_sudo
+                $DRY_RUN $SUDO ./llvm.sh 19
                 rm llvm.sh
             fi
         fi