mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zfs-load-key.sh: ${ZFS} is not the zfs binary
A change[1] was merged yesterday that should refer to the zfs binary in the initramfs, but is actually an unset shell variable. This commit changes this line to call `zfs` directly like the surrounding code. [1]: cb5b875b273235a4a3ed28e16f416d5bb8865166 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Garrett Fields <ghfields@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Ben Cordero <bencord0@condi.me> Closes #9780
This commit is contained in:
		
							parent
							
								
									756c58cf71
								
							
						
					
					
						commit
						c7dc6f3ab3
					
				| @ -38,7 +38,7 @@ if [ "$(zpool list -H -o feature@encryption $(echo "${BOOTFS}" | awk -F\/ '{prin | ||||
|     # if the root dataset has encryption enabled | ||||
|     ENCRYPTIONROOT=$(zfs get -H -o value encryptionroot "${BOOTFS}") | ||||
|     # where the key is stored (in a file or loaded via prompt) | ||||
|     KEYLOCATION=$(${ZFS} get -H -o value keylocation "${ENCRYPTIONROOT}") | ||||
|     KEYLOCATION=$(zfs get -H -o value keylocation "${ENCRYPTIONROOT}") | ||||
|     if ! [ "${ENCRYPTIONROOT}" = "-" ]; then | ||||
|         KEYSTATUS="$(zfs get -H -o value keystatus "${ENCRYPTIONROOT}")" | ||||
|         # continue only if the key needs to be loaded | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Ben Cordero
						Ben Cordero