s
This commit is contained in:
parent
db5be59e21
commit
5d34b566c9
@ -463,15 +463,15 @@ btrfs-tweaks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize-disk() {
|
initialize-disk() {
|
||||||
SWAP_SIZE=$(expr $ROOT_PARTITION_SIZE + 16)
|
SWAP_SIZE="$(expr $ROOT_PARTITION_SIZE + 16)GiB"
|
||||||
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 primary ext3 200MiB $ROOT_PARTITION_SIZE
|
parted -a optimal /dev/$HARD_DISK mkpart primary ext3 200MiB $ROOT_PARTITION_SIZE
|
||||||
parted -a optimal /dev/$HARD_DISK set 1 esp on
|
parted -a optimal /dev/$HARD_DISK set 1 esp on
|
||||||
|
|
||||||
echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE ${SWAP_SIZE}GiB
|
echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE $SWAP_SIZE
|
||||||
sleep 5
|
sleep 5
|
||||||
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 ${SWAP_SIZE}GiB 100%
|
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $SWAP_SIZE 100%
|
||||||
partitionDetection
|
partitionDetection
|
||||||
echo
|
echo
|
||||||
echo "Formatting....."
|
echo "Formatting....."
|
||||||
|
Loading…
Reference in New Issue
Block a user