docs(zfs): Export zpool when done working on it (#3)
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							@@ -409,7 +409,7 @@ zfs create zpool/data/var/lib/docker
 | 
			
		||||
In case you want to mount your zpool on an external operating system such as an Arch Linux live CD ISO image do it like so:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
zpool import zpool -d '/dev/disk/by-partuuid' -R '/mnt' -f -N
 | 
			
		||||
zpool import 'zpool' -d '/dev/disk/by-partuuid' -R '/mnt' -f -N
 | 
			
		||||
zfs load-key -L 'prompt' 'zpool'
 | 
			
		||||
zfs mount 'zpool/root/archlinux'
 | 
			
		||||
zfs mount -a
 | 
			
		||||
@@ -417,6 +417,14 @@ mount '/dev/sda1' '/mnt/efi'
 | 
			
		||||
arch-chroot '/mnt' '/bin/bash'
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
When done cleanly remove your work:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
umount '/mnt/efi'
 | 
			
		||||
zfs umount -a
 | 
			
		||||
zpool export 'zpool'
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Explanation:
 | 
			
		||||
 | 
			
		||||
- We always want to mount pools `by-partuuid` for consistency so we specifically only look for pools at `/dev/disk/by-partuuid`.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user