PortValhalla/profiles/DerGeret/Arch/partition.sh

32 lines
475 B
Bash
Raw Normal View History

#!/bin/bash
{
# Delete placeholders for swap and Linux partition
echo "d";
echo "2";
echo "d";
echo "3";
# Create swap partition
echo "n";
echo "";
echo "";
echo "+${SWAP_SIZE}G";
echo "y";
echo "t";
echo "2";
echo "19";
# Fill remaining space with Linux partition
echo "n";
echo "";
echo "";
echo "";
echo "y";
echo "t";
echo "3";
echo "23";
echo "w";
2024-02-08 04:28:11 +00:00
} | fdisk "$OS_DISK";