Switch to triggering common user configs via a path unit. This is particularly useful for config drive so that a config drive can be mounted by something other than the udev triggered services, a bind mount when running in a container for example.
		
			
				
	
	
		
			12 lines
		
	
	
		
			362 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			362 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Mount config drive
 | 
						|
Conflicts=configdrive-virtfs.service umount.target
 | 
						|
ConditionPathIsMountPoint=!/media/configdrive
 | 
						|
# Only mount config drive block devices automatically in virtual machines
 | 
						|
ConditionVirtualization=vm
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=oneshot
 | 
						|
RemainAfterExit=no
 | 
						|
ExecStart=/bin/mount -t auto -o ro,x-mount.mkdir LABEL=config-2 /media/configdrive
 |