mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-31 18:17:52 +00:00 
			
		
		
		
	 6745691eb5
			
		
	
	6745691eb5
	
	
	
		
			
			- run pre-commit tox profile to trim all trailing blanks - use several commits with a per-folder based strategy to ease their merge Issue #15114 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| [[ ! -z "${DBGOPT}" && $0 =~ ${DBGOPT} ]] && set -x
 | |
| 
 | |
| SLAVE_DIR=$1
 | |
| ARCH=$2
 | |
| DISTRO=$3
 | |
| 
 | |
| # Install the latest debian package sonic-build-hooks in the slave container
 | |
| sudo dpkg -i --force-overwrite $SLAVE_DIR/buildinfo/sonic-build-hooks_*.deb &> /dev/null
 | |
| 
 | |
| # Enable the build hooks
 | |
| sudo symlink_build_hooks
 | |
| 
 | |
| # set the global permissions
 | |
| sudo chmod -f 777 /usr/local/share/buildinfo/ -R
 | |
| 
 | |
| # Build the slave running config
 | |
| cp -rf $SLAVE_DIR/buildinfo/* /usr/local/share/buildinfo/
 | |
| . /usr/local/share/buildinfo/scripts/buildinfo_base.sh
 | |
| 
 | |
| # Enable reproducible mirrors
 | |
| set_reproducible_mirrors
 | |
| apt-get update > /dev/null 2>&1
 | |
| 
 | |
| # Build the slave version config
 | |
| [ -d /usr/local/share/buildinfo/versions ] && rm -rf /usr/local/share/buildinfo/versions
 | |
| scripts/versions_manager.py generate -t "/usr/local/share/buildinfo/versions" -n "build-${SLAVE_DIR}" -d "$DISTRO" -a "$ARCH"
 | |
| touch ${BUILDINFO_PATH}/versions/versions-deb ${BUILDINFO_PATH}/versions/versions-web
 | |
| 
 | |
| sudo rm -f /etc/apt/preferences.d/01-versions-deb
 | |
| ([ "$ENABLE_VERSION_CONTROL_DEB" == "y" ] && [ -f $VERSION_DEB_PREFERENCE ]) && sudo cp -f $VERSION_DEB_PREFERENCE /etc/apt/preferences.d/
 | |
| exit 0
 |