2014-01-19 18:36:49 +04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[Unit]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Description=Import ZFS pools by device scanning
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-05 23:50:35 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Documentation=man:zpool(8)
							 | 
						
					
						
							
								
									
										
										
										
											2014-01-19 18:36:49 +04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								DefaultDependencies=no
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Requires=systemd-udev-settle.service
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								After=systemd-udev-settle.service
							 | 
						
					
						
							
								
									
										
										
										
											2014-07-26 20:45:15 +04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								After=cryptsetup.target
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-30 23:18:26 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Before=zfs-import.target
							 | 
						
					
						
							
								
									
										
										
										
											2014-01-19 18:36:49 +04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[Service]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Type=oneshot
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RemainAfterExit=yes
							 | 
						
					
						
							
								
									
										
										
										
											2016-05-25 20:48:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								ExecStart=@sbindir@/zpool import -aN -o cachefile=none
							 | 
						
					
						
							
								
									
										
										
										
											2018-01-31 02:58:19 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								ExecStartPost=/bin/bash -c "/bin/systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | /bin/awk '$1 != \"-\" {print; exit}')"
							 | 
						
					
						
							
								
									
										
										
										
											2016-05-25 20:48:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[Install]
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-30 23:18:26 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								WantedBy=zfs-import.target
							 |