diff --git a/entry.sh b/entry.sh index ce95b60..98ea97b 100755 --- a/entry.sh +++ b/entry.sh @@ -70,10 +70,10 @@ function first_stage(){ pvcreate /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)) - ROOT_SIZE=$(($LVM_SIZE/1024/1024-$SWAP_SIZE-512)) + export SWAP_SIZE=$(($(mem_size)/1024/1024)) + export ROOT_SIZE=$(($LVM_SIZE/1024/1024-$SWAP_SIZE-512)) echo lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M