s
This commit is contained in:
parent
71a1f20b02
commit
c321e7801b
@ -463,9 +463,8 @@ btrfs-tweaks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize-disk() {
|
initialize-disk() {
|
||||||
ROOT_PARTITION_SIZE="$ROOT_PARTITION_SIZE GB"
|
|
||||||
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1024)
|
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1024)
|
||||||
SWAP_SIZE_END="$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) GB"
|
SWAP_SIZE_END="$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE)"
|
||||||
echo "Start: $SWAP_SIZE END: $SWAP_SIZE_END"
|
echo "Start: $SWAP_SIZE END: $SWAP_SIZE_END"
|
||||||
parted /dev/$HARD_DISK mklabel gpt
|
parted /dev/$HARD_DISK mklabel gpt
|
||||||
parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB
|
parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB
|
||||||
|
Loading…
Reference in New Issue
Block a user