From 5471c6b363f2aa02f5ba789b4e86abaad698a548 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 31 Jan 2020 15:38:41 +0100 Subject: [PATCH] wip --- entry.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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