Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ An empty default means the variable is unset and its value is determined automat
| `SOUND` | `intel-hda` | Audio device used when `AUDIO=Y`. |
| `SM_BIOS` | | Additional arguments passed to QEMU鈥檚 `-smbios` option. |
| `ARGUMENTS` | | Additional raw arguments appended to the QEMU command line. |
| `ARGS_FILE` | | Path to a file with extra QEMU arguments, one per line, passed exactly as written (no word splitting). |

## 馃殌 Boot

Expand Down
6 changes: 6 additions & 0 deletions src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ trap - ERR

cmd=(qemu-system-x86_64)
version=$("${cmd[@]}" --version | awk 'NR==1 { print $4 }')
if [ -n "${ARGS_FILE:-}" ]; then
while IFS= read -r arg || [ -n "$arg" ]; do
if [ -n "$arg" ]; then cmd+=("$arg"); fi
done < "$ARGS_FILE"
fi

info "Booting ${APP}${BOOT_DESC} using QEMU v$version..." && echo

pipe="$QEMU_DIR/qemu.pipe"
Expand Down
Loading