diff options
Diffstat (limited to 'scripts/boot-image.sh')
| -rwxr-xr-x | scripts/boot-image.sh | 7 |
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 @@ | |||
| 20 | set -euo pipefail | 20 | set -euo pipefail |
| 21 | 21 | ||
| 22 | SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | 22 | SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" |
| 23 | PROJECT_DIR="$(dirname "$SCRIPT_DIR")" | 23 | PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" |
| 24 | |||
| 25 | cd "$PROJECT_DIR" | 24 | cd "$PROJECT_DIR" |
| 26 | 25 | ||
| 27 | IMAGE="rs-dos.img" | 26 | IMAGE="${1:-rs-dos.img}" |
| 28 | 27 | ||
| 29 | # ---- config ---- | 28 | # ---- config ---- |
| 30 | OVMF="${OVMF:-/usr/share/edk2/x64/OVMF.4m.fd}" | 29 | OVMF="${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 ---- |
| 41 | if [ ! -f "$IMAGE" ]; then | 40 | if [ ! -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" |
| 44 | fi | 43 | fi |
| 45 | 44 | ||
| 46 | # ---- boot ---- | 45 | # ---- boot ---- |
