packer/build-image: format and build as root
root is required for some of the build steps.
This commit is contained in:
		
							parent
							
								
									412cc5f22f
								
							
						
					
					
						commit
						a3403b0fc3
					
				| 
						 | 
				
			
			@ -34,5 +34,9 @@ preflight () {
 | 
			
		|||
 | 
			
		||||
build_image () {
 | 
			
		||||
    cd build/packer-builder-arm
 | 
			
		||||
    packer build ${PACKER_BUILD_FILE}
 | 
			
		||||
    sudo packer build ${PACKER_BUILD_FILE}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
preflight
 | 
			
		||||
build_image
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue