mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-11-04 10:54:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			653 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			653 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash -ex
 | 
						|
# vi: ts=4 noexpandtab
 | 
						|
 | 
						|
if [ "${PASS}" != "ubuntu-server-minimal.ubuntu-server.installer" ]; then
 | 
						|
    exit 0
 | 
						|
fi
 | 
						|
 | 
						|
# Make sure NoCloud is last
 | 
						|
values=$(echo get cloud-init/datasources | debconf-communicate | sed 's/^0 //;s/NoCloud, //;s/None/NoCloud, None/')
 | 
						|
printf "%s\t%s\t%s\t%s\n" \
 | 
						|
   cloud-init cloud-init/datasources multiselect  "$values" | debconf-set-selections
 | 
						|
dpkg-reconfigure --frontend=noninteractive cloud-init
 | 
						|
 | 
						|
if [ `dpkg --print-architecture` = s390x ]; then
 | 
						|
    # because z/VM x3270 is just ttyS0
 | 
						|
    cp -r /usr/lib/systemd/system/serial-getty@sclp_line0.service.d /usr/lib/systemd/system/serial-getty@ttyS0.service.d
 | 
						|
fi
 |