Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Boot file #187

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -Eeuo pipefail

[ -f "$STORAGE/boot.img" ] && return 0
FILE="$STORAGE/boot.img"
[ -f "$FILE" ] && return 0

TMP="/boot.img"
rm -f "$TMP"
Expand All @@ -28,8 +29,6 @@ if ((SIZE<100000)); then
error "Invalid ISO file: Size is smaller than 100 KB" && exit 62
fi

FILE="$STORAGE/boot.img"

mv -f "$TMP" "$FILE"

{ set +x; } 2>/dev/null
Expand Down