baseline-tools expects lsb_release (although tolerates it not being there) Order needs to be 01-override-yum-arch, 02-lsb, 03-baseline-tools hence the renames. Possibly lsb_release isn't cared enough about to do this. Change-Id: I03abffb1ab2f560e746ba4ffd407605de31f4930
		
			
				
	
	
		
			17 lines
		
	
	
		
			414 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			414 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
# Install baseline packages and tools.
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
# If lsb_release is missing, just do nothing.
 | 
						|
DISTRO=`lsb_release -si` || true
 | 
						|
 | 
						|
case $DISTRO in
 | 
						|
  'Ubuntu'|'Debian')
 | 
						|
    # Note: add-apt-repository would be nice for RPM platforms too - so when we
 | 
						|
    # need something like it, create a wrapper in dpkg/bin and fedora/bin.
 | 
						|
    apt-get -y update
 | 
						|
    install-packages python-software-properties
 | 
						|
    ;;
 | 
						|
esac
 |