Implement partitioning using a function

This commit is contained in:
Manuel Thalmann 2024-03-25 02:30:58 +01:00
parent 03c83a45a7
commit a8035af561
2 changed files with 30 additions and 29 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash
{
function dualbootPartition() {
{
# Delete placeholders for swap and Linux partition
echo "d";
echo "2";
@ -28,4 +29,5 @@
echo "23";
echo "w";
} | fdisk "$OS_DISK";
} | fdisk "$OS_DISK";
}

View file

@ -1,5 +1,6 @@
#!/bin/bash -e
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "./partition.sh";
extraMounts()
{
@ -8,9 +9,7 @@ extraMounts()
}
function initializePartitions() {
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "./partition.sh";
popd > /dev/null;
dualbootPartition;
}
SKIP_FORMAT_EFI=1 \