Skip to content

Commit

Permalink
add convenience script to run qemu
Browse files Browse the repository at this point in the history
Signed-off-by: gbionescu <[email protected]>
  • Loading branch information
gbionescu committed Sep 4, 2024
1 parent b5c5138 commit e543fc1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions run-qemu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

run() {
qemu-system-x86_64 \
-kernel /home/debian/linux/linux-6.1.22/arch/x86/boot/bzImage \
-append "console=ttyS0 root=/dev/sda rw earlyprintk=serial" \
-nographic -m 1G \
-hda "$1"
}

run "$1"

0 comments on commit e543fc1

Please sign in to comment.