2023-07-12 21:01:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
{
|
2024-03-23 15:32:54 +00:00
|
|
|
# Delete placeholders for swap and Linux partition
|
2023-07-12 21:01:37 +00:00
|
|
|
echo "d";
|
|
|
|
echo "2";
|
|
|
|
|
|
|
|
echo "d";
|
|
|
|
echo "3";
|
|
|
|
|
2024-03-23 15:32:54 +00:00
|
|
|
# Create swap partition
|
2023-07-12 21:01:37 +00:00
|
|
|
echo "n";
|
|
|
|
echo "";
|
|
|
|
echo "";
|
|
|
|
echo "+${SWAP_SIZE}G";
|
|
|
|
echo "y";
|
|
|
|
echo "t";
|
|
|
|
echo "2";
|
|
|
|
echo "19";
|
|
|
|
|
2024-03-23 15:32:54 +00:00
|
|
|
# Fill remaining space with Linux partition
|
2023-07-12 21:01:37 +00:00
|
|
|
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";
|