Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 1a7e59a

Browse files
committed
driver: Move x86_64 from ide to virtio
This allows booting up via EFI; without this, init panics because /dev/sda is not found. The IDE block driver is seldom used, virtio is better for our purposes. Suggested-by: Kees Cook <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 27c9d15 commit 1a7e59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ setup_variables() {
145145
-initrd "images/x86_64/rootfs.cpio" ) ;;
146146
*)
147147
config=defconfig
148-
qemu_cmdline=( -drive "file=images/x86_64/rootfs.ext4,format=raw,if=ide"
149-
-append "console=ttyS0 root=/dev/sda" ) ;;
148+
qemu_cmdline=( -drive "file=images/x86_64/rootfs.ext4,format=raw,if=virtio"
149+
-append "console=ttyS0 root=/dev/vda" ) ;;
150150
esac
151151
# Use KVM if the processor supports it (first part) and the KVM module is loaded (second part)
152152
[[ $(grep -c -E 'vmx|svm' /proc/cpuinfo) -gt 0 && $(lsmod 2>/dev/null | grep -c kvm) -gt 0 ]] && qemu_cmdline=( "${qemu_cmdline[@]}" -enable-kvm )

0 commit comments

Comments
 (0)