mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	 2284a61129
			
		
	
	
		2284a61129
		
	
	
	
	
		
			
			The one-shot zfs-mount.service is incorrectly deemed active by Systemd after a systemctl soft-reboot. As such, soft-rebooting prevents zfs mount -a from being ran automatically. This commit makes it so that zfs-mount.service is marked as being undone by the time umount.target is reached, so that zfs.target then pulls it in again and gets it restarted after a soft reboot. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: kotauskas <v.toncharov@gmail.com> Closes #16845
		
			
				
	
	
		
			26 lines
		
	
	
		
			594 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			594 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
| [Unit]
 | |
| Description=Mount ZFS filesystems
 | |
| Documentation=man:zfs(8)
 | |
| DefaultDependencies=no
 | |
| After=systemd-udev-settle.service
 | |
| After=zfs-import.target
 | |
| After=systemd-remount-fs.service
 | |
| Before=local-fs.target
 | |
| ConditionPathIsDirectory=/sys/module/zfs
 | |
| 
 | |
| # This merely tells the service manager
 | |
| # that unmounting everything undoes the
 | |
| # effect of this service. No extra logic
 | |
| # is ran as a result of these settings.
 | |
| Conflicts=umount.target
 | |
| Before=umount.target
 | |
| 
 | |
| [Service]
 | |
| Type=oneshot
 | |
| RemainAfterExit=yes
 | |
| EnvironmentFile=-@initconfdir@/zfs
 | |
| ExecStart=@sbindir@/zfs mount -a
 | |
| 
 | |
| [Install]
 | |
| WantedBy=zfs.target
 |