mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-30 16:34:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			381 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			381 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| set -e
 | |
| 
 | |
| mkdir -p /etc/writable
 | |
| 
 | |
| # cloud-init needs to be able to modify hostname and has the ability to
 | |
| # set the other two.
 | |
| for f in timezone localtime hostname; do
 | |
|     if [ -e /etc/$f ]; then
 | |
|         echo "I: Moving /etc/$f to /etc/writable/"
 | |
|         mv /etc/$f /etc/writable/$f
 | |
|     fi
 | |
|     echo "I: Linking /etc/$f to /etc/writable/"
 | |
|     ln -s writable/$f /etc/$f
 | |
| done
 |