wip
This commit is contained in:
parent
ea64241492
commit
5471c6b363
1 changed files with 3 additions and 3 deletions
6
entry.sh
6
entry.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue