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.
		
			
				
	
	
		
			15 lines
		
	
	
		
			516 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			516 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| [Unit]
 | |
| Description=Mount config drive from virtfs
 | |
| Conflicts=configdrive-block.service umount.target
 | |
| ConditionPathIsMountPoint=!/media/configdrive
 | |
| ConditionVirtualization=vm
 | |
| 
 | |
| # Support old style setup for now
 | |
| Wants=addon-run@media-configdrive.service addon-config@media-configdrive.service
 | |
| Before=addon-run@media-configdrive.service addon-config@media-configdrive.service
 | |
| 
 | |
| [Service]
 | |
| Type=oneshot
 | |
| RemainAfterExit=no
 | |
| ExecStart=/bin/mount -t 9p -o trans=virtio,version=9p2000.L,x-mount.mkdir config-2 /media/configdrive
 |