33 lines
612 B
Bash
Executable file
33 lines
612 B
Bash
Executable file
#!/bin/bash
|
|
function dualbootPartition() {
|
|
{
|
|
# 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";
|
|
} | fdisk "$OS_DISK";
|
|
}
|