d
This commit is contained in:
parent
9eaa60ac53
commit
5b754df709
@ -464,9 +464,7 @@ btrfs-tweaks() {
|
|||||||
|
|
||||||
initialize-disk() {
|
initialize-disk() {
|
||||||
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1000 / 1000)
|
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1000 / 1000)
|
||||||
echo "Test $SWAP_SIZE + $ROOT_PARTITION_SIZE"
|
|
||||||
SWAP_SIZE_END="$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE)"
|
SWAP_SIZE_END="$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE)"
|
||||||
echo "Start: $ROOT_PARTITION_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
|
||||||
parted -a optimal /dev/$HARD_DISK mkpart root ext3 200MiB ${ROOT_PARTITION_SIZE}GB
|
parted -a optimal /dev/$HARD_DISK mkpart root ext3 200MiB ${ROOT_PARTITION_SIZE}GB
|
||||||
|
Loading…
Reference in New Issue
Block a user