summaryrefslogtreecommitdiffstats
path: root/scripts/boot-image.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/boot-image.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/boot-image.sh b/scripts/boot-image.sh
index e8c093c..f70dcd4 100755
--- a/scripts/boot-image.sh
+++ b/scripts/boot-image.sh
@@ -20,11 +20,10 @@
20set -euo pipefail 20set -euo pipefail
21 21
22SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" 22SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
23PROJECT_DIR="$(dirname "$SCRIPT_DIR")" 23PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
24
25cd "$PROJECT_DIR" 24cd "$PROJECT_DIR"
26 25
27IMAGE="rs-dos.img" 26IMAGE="${1:-rs-dos.img}"
28 27
29# ---- config ---- 28# ---- config ----
30OVMF="${OVMF:-/usr/share/edk2/x64/OVMF.4m.fd}" 29OVMF="${OVMF:-/usr/share/edk2/x64/OVMF.4m.fd}"
@@ -40,7 +39,7 @@ parse_boot_args "$@"
40# ---- build image if missing ---- 39# ---- build image if missing ----
41if [ ! -f "$IMAGE" ]; then 40if [ ! -f "$IMAGE" ]; then
42 echo "Image not found, building..." 41 echo "Image not found, building..."
43 "$SCRIPT_DIR/build-image.sh" 42 "$SCRIPT_DIR/mksystem.sh" --chain --gpt "$IMAGE"
44fi 43fi
45 44
46# ---- boot ---- 45# ---- boot ----