mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Fix another dependency loop
zfs-load-key-DATASET.service was gaining an After=systemd-journald.socket due to its stdout/stderr going to the journal (which is the default). systemd-journald.socket has an After (via RequiresMountsFor=/run/systemd/journal) on -.mount. If the root filesystem is encrypted, -.mount gets an After zfs-load-key-DATASET.service. By setting stdout and stderr to null on the key load services, we avoid this loop. Reviewed-by: Antonio Russo <antonio.e.russo@gmail.com> Reviewed-by: InsanePrawn <insane.prawny@gmail.com> Signed-off-by: Richard Laager <rlaager@wiktel.com> Closes #10356 Closes #10388
This commit is contained in:
		
							parent
							
								
									6bf3f4dfe5
								
							
						
					
					
						commit
						0fba4d138c
					
				| @ -221,6 +221,10 @@ ${keymountdep} | |||||||
| [Service] | [Service] | ||||||
| Type=oneshot | Type=oneshot | ||||||
| RemainAfterExit=yes | RemainAfterExit=yes | ||||||
|  | # This avoids a dependency loop involving systemd-journald.socket if this | ||||||
|  | # dataset is a parent of the root filesystem. | ||||||
|  | StandardOutput=null | ||||||
|  | StandardError=null | ||||||
| ExecStart=${keyloadcmd} | ExecStart=${keyloadcmd} | ||||||
| ExecStop=${keyunloadcmd}"   > "${dest_norm}/${keyloadunit}" | ExecStop=${keyunloadcmd}"   > "${dest_norm}/${keyloadunit}" | ||||||
|     fi |     fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Richard Laager
						Richard Laager