Blame SOURCES/installer-12736-no-sudo.patch

2547b6
From f8e115fadf6e8b392fa007e78d9b77fc64590cdd Mon Sep 17 00:00:00 2001
2547b6
From: Daniel Plaisted <dsplaisted@gmail.com>
2547b6
Date: Mon, 29 Nov 2021 20:19:30 -0800
2547b6
Subject: [PATCH] Don't set ulimit
2547b6
2547b6
1ES pools should now have ulimit set already now
2547b6
---
2547b6
 build.sh     | 4 +---
2547b6
 run-build.sh | 4 ----
2547b6
 2 files changed, 1 insertion(+), 7 deletions(-)
2547b6
2547b6
diff --git a/build.sh b/build.sh
2547b6
index 594a355fafa..7ff647c4060 100755
2547b6
--- a/build.sh
2547b6
+++ b/build.sh
2547b6
@@ -53,7 +53,5 @@ dockerbuild()
2547b6
 if [ ! -z "$BUILD_IN_DOCKER" ]; then
2547b6
     dockerbuild $args
2547b6
 else
2547b6
-    # Run under sudo so we can set ulimit
2547b6
-    # See https://github.com/dotnet/core-eng/issues/14808
2547b6
-    sudo -E $DIR/run-build.sh $args
2547b6
+    $DIR/run-build.sh $args
2547b6
 fi
2547b6
diff --git a/run-build.sh b/run-build.sh
2547b6
index fe839eb8009..7b98aedc0be 100755
2547b6
--- a/run-build.sh
2547b6
+++ b/run-build.sh
2547b6
@@ -25,10 +25,6 @@ CUSTOM_BUILD_ARGS=
2547b6
 # Set nuget package cache under the repo
2547b6
 [ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
2547b6
 
2547b6
-# Set max number of files open, helps avoid errors during NuGet restore
2547b6
-# See https://github.com/dotnet/core-eng/issues/14808
2547b6
-ulimit -n 16384
2547b6
-
2547b6
 args=( )
2547b6
 
2547b6
 while [[ $# > 0 ]]; do