Mount LV root only if exists
This commit is contained in:
		
							parent
							
								
									dbad50664f
								
							
						
					
					
						commit
						19418e59a1
					
				|  | @ -92,7 +92,11 @@ fi | ||||||
| ## Mount the system {{{ | ## Mount the system {{{ | ||||||
| ### Root | ### Root | ||||||
| mkdir -p -- /target | mkdir -p -- /target | ||||||
|  | if [ -b "/dev/mapper/${vgname}-root" ]; then | ||||||
| 	mountpoint -q /target            || mount -- /dev/mapper/"${vgname}"-root /target | 	mountpoint -q /target            || mount -- /dev/mapper/"${vgname}"-root /target | ||||||
|  | else | ||||||
|  | 	mountpoint -q /target            || mount -- ${hdd}3 /target | ||||||
|  | fi | ||||||
| 
 | 
 | ||||||
| 	### boot - grub | 	### boot - grub | ||||||
| 	mountpoint -q /target/boot       || mount -- ${hdd}1 /target/boot | 	mountpoint -q /target/boot       || mount -- ${hdd}1 /target/boot | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue