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