wip
This commit is contained in:
parent
625b8bc170
commit
e3c9e93efa
1 changed files with 6 additions and 6 deletions
12
entry.sh
12
entry.sh
|
@ -55,15 +55,15 @@ function first_stage(){
|
|||
|
||||
LVM_SIZE=$(dev_size /dev/mapper/cryptlvm)
|
||||
|
||||
SWAP_SIZE=$(($(mem_size)/1024/1024/1024))
|
||||
ROOT_SIZE=$(($LVM_SIZE/1024/1024/1024-SWAP_SIZE))
|
||||
SWAP_SIZE=$(($(mem_size)/1000/1000))
|
||||
ROOT_SIZE=$(($LVM_SIZE/1024/1024-SWAP_SIZE))
|
||||
|
||||
echo lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}G
|
||||
lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}G
|
||||
echo lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M
|
||||
lvcreate /dev/vg0 --name=root --size=${ROOT_SIZE}M
|
||||
yes | mkfs.btrfs /dev/vg0/root
|
||||
|
||||
echo lvcreate /dev/vg0 --name=swap --size=${SWAP_SIZE}G
|
||||
lvcreate /dev/vg0 --name=swap --size=${SWAP_SIZE}G
|
||||
echo lvcreate /dev/vg0 --name=swap --size=${SWAP_SIZE}M
|
||||
lvcreate /dev/vg0 --name=swap --size=${SWAP_SIZE}M
|
||||
mkswap /dev/vg0/swap
|
||||
swapon /dev/vg0/swap
|
||||
|
||||
|
|
Loading…
Reference in a new issue