Skip to content

fix: Restart caused boot error#4

Merged
kroese merged 2 commits into
masterfrom
dev
May 30, 2026
Merged

fix: Restart caused boot error#4
kroese merged 2 commits into
masterfrom
dev

Conversation

@kroese
Copy link
Copy Markdown

@kroese kroese commented May 30, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 16:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors boot image discovery in src/install.sh so that an already-normalized boot file (e.g. $STORAGE/boot.iso) is reused on container restart instead of being re-moved/re-downloaded, and adds .raw to the list of recognized boot image formats.

Changes:

  • Introduces a new bootFile() helper that sets BOOT directly when the source file is already at $STORAGE/boot.$ext (or at /boot.$ext / /custom.$ext), and otherwise moves it into place.
  • Wires findFile() and the post-download path through bootFile(), removing the inline mv/BOOT= logic.
  • Adds findFile "boot" "raw" to the boot image search order.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/install.sh Outdated
if ! mv -f "$STORAGE/$base" "$dest"; then
error "Failed to move file to $dest !" && exit 61
fi
! bootFile "$STORAGE/$base" "$dest" && exit 61
@kroese kroese merged commit 37f9d4f into master May 30, 2026
1 check passed
@kroese kroese deleted the dev branch May 30, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants