mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-31 08:54:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			471 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			471 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #! /bin/sh
 | |
| 
 | |
| # We need to remove the snapd seed configuration for the layers that
 | |
| # will be the installation source for a TPM-backed FDE install or
 | |
| # snapd gets very confused on the boot of the target system.
 | |
| 
 | |
| set -eux
 | |
| 
 | |
| case ${PASS:-} in
 | |
|     *.enhanced-secureboot)
 | |
|         ;;
 | |
|     *)
 | |
|         exit 0
 | |
|         ;;
 | |
| esac
 | |
| 
 | |
| . config/functions
 | |
| 
 | |
| if [ -n "${SUBPROJECT:-}" ]; then
 | |
|     echo "We don't run Ubuntu Desktop hooks for this project."
 | |
|     exit 0
 | |
| fi
 | |
| 
 | |
| reset_snapd_state chroot
 |