This commit is contained in:
j3d1 2020-01-31 15:38:41 +01:00
parent ea64241492
commit 5471c6b363

View file

@ -70,10 +70,10 @@ function first_stage(){
pvcreate /dev/mapper/cryptlvm pvcreate /dev/mapper/cryptlvm
vgcreate vg0 /dev/mapper/cryptlvm vgcreate vg0 /dev/mapper/cryptlvm
LVM_SIZE=$(dev_size /dev/mapper/cryptlvm) export LVM_SIZE=$(dev_size /dev/mapper/cryptlvm)
SWAP_SIZE=$(($(mem_size)/1024/1024)) export SWAP_SIZE=$(($(mem_size)/1024/1024))
ROOT_SIZE=$(($LVM_SIZE/1024/1024-$SWAP_SIZE-512)) export ROOT_SIZE=$(($LVM_SIZE/1024/1024-$SWAP_SIZE-512))
echo lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M echo lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M
lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M