mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-31 08:54:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			881 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			881 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -ex
 | |
| 
 | |
| case ${PASS} in
 | |
|     ubuntu-server-minimal.ubuntu-server)
 | |
|         ;;
 | |
|     *)
 | |
|         exit 0
 | |
|         ;;
 | |
| esac
 | |
| 
 | |
| # The unminimize script will try to install the lxd snap. We can't
 | |
| # do that at this stage so just neuter the snap command (the snap
 | |
| # will get properly seeded by generic machinery).
 | |
| dpkg-divert --add --divert /usr/bin/snap.REAL --rename /usr/bin/snap
 | |
| ln -s /bin/true /usr/bin/snap
 | |
| yes | /usr/local/sbin/unminimize
 | |
| rm /usr/bin/snap
 | |
| dpkg-divert --remove --rename /usr/bin/snap
 | |
| 
 | |
| # Fix up missing recommends.  Other non-layered flavors handle this in
 | |
| # live-build/auto/build, but we need to do it here.  Also, there are
 | |
| # additional recommends missing from server-minimal that wouldn't be
 | |
| # corrected by a fix to debootstrap to handle Recommends.
 | |
| echo "Installing any missing recommends"
 | |
| env DEBIAN_FRONTEND=noninteractive apt-get -y --fix-policy install
 |