mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Fix for mountpoint=legacy
We need to clear mountpoint only after checking it. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: ofthesun9 <olivier@ofthesun.net> Closes #14599 Closes #14604
This commit is contained in:
		
							parent
							
								
									4b3133e671
								
							
						
					
					
						commit
						a5c469c5f3
					
				| @ -341,11 +341,12 @@ mount_fs() | |||||||
| 				# isn't the root fs. | 				# isn't the root fs. | ||||||
| 				return 0 | 				return 0 | ||||||
| 			fi | 			fi | ||||||
| 			# Last hail-mary: Hope 'rootmnt' is set! | 			# Don't use mount.zfs -o zfsutils for legacy mountpoint | ||||||
| 			mountpoint="" |  | ||||||
| 			if [ "$mountpoint" = "legacy" ]; then | 			if [ "$mountpoint" = "legacy" ]; then | ||||||
| 				ZFS_CMD="mount.zfs" | 				ZFS_CMD="mount.zfs" | ||||||
| 			fi | 			fi | ||||||
|  | 			# Last hail-mary: Hope 'rootmnt' is set! | ||||||
|  | 			mountpoint="" | ||||||
| 		else | 		else | ||||||
| 			mountpoint="$mountpoint1" | 			mountpoint="$mountpoint1" | ||||||
| 		fi | 		fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ofthesun9
						ofthesun9