This commit is contained in:
j3d1 2020-01-31 12:01:55 +01:00
parent 19dd942521
commit bad143cd4c

View file

@ -61,7 +61,7 @@ function first_stage(){
LVM_SIZE=$(dev_size /dev/mapper/cryptlvm) LVM_SIZE=$(dev_size /dev/mapper/cryptlvm)
SWAP_SIZE=$(($(mem_size)/1024/1024)) SWAP_SIZE=$(($(mem_size)/1024/1024))
ROOT_SIZE=$(($LVM_SIZE/1024/1024-SWAP_SIZE)) 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