Implement partitioning using a function
This commit is contained in:
parent
dea9095573
commit
87a25ce378
2 changed files with 30 additions and 29 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
{
|
function dualbootPartition() {
|
||||||
|
{
|
||||||
# Delete placeholders for swap and Linux partition
|
# Delete placeholders for swap and Linux partition
|
||||||
echo "d";
|
echo "d";
|
||||||
echo "2";
|
echo "2";
|
||||||
|
@ -28,4 +29,5 @@
|
||||||
echo "23";
|
echo "23";
|
||||||
|
|
||||||
echo "w";
|
echo "w";
|
||||||
} | fdisk "$OS_DISK";
|
} | fdisk "$OS_DISK";
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||||
|
. "./partition.sh";
|
||||||
|
|
||||||
extraMounts()
|
extraMounts()
|
||||||
{
|
{
|
||||||
|
@ -8,9 +9,7 @@ extraMounts()
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializePartitions() {
|
function initializePartitions() {
|
||||||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
dualbootPartition;
|
||||||
. "./partition.sh";
|
|
||||||
popd > /dev/null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SKIP_FORMAT_EFI=1 \
|
SKIP_FORMAT_EFI=1 \
|
||||||
|
|
Loading…
Reference in a new issue