IAIK / sweb

SWEB Educational OS
https://teaching.iaik.tugraz.at/bs/
117 stars 112 forks source link

Qemu warning on OS X #56

Closed GhostLyrics closed 9 years ago

GhostLyrics commented 9 years ago

When building a qemu target on OS X, the following warning appears:

| ghostlyrics@Razgriz: /tmp/build
| => make qemu
Scanning dependencies of target qemu
Executing `qemu-system-i386 -m 8M -cpu qemu32 -hda SWEB-flat.vmdk -debugcon stdio -no-reboot`
WARNING: Image format was not specified for 'SWEB-flat.vmdk' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions

I am considering rewriting those lines in all CMakeLists.include(s) to be something along the lines of the solution in a similar issue from grub2-theme-preview.

-COMMAND    qemu-system-i386 -m 8M -cpu qemu32 -hda SWEB-flat.vmdk -debugcon stdio -no-reboot
+COMMAND    qemu-system-i386 -m 8M -cpu qemu32 -drive file=SWEB-flat.vmdk,index=0,media=disk,format=raw -debugcon stdio -no-reboot

I've tested this for the x86/32 version and it boots up fine. Thoughts?

GhostLyrics commented 9 years ago

Also tested this in the VM for x86/32. Will run all builds and get back. Do you want me to leave the old version in the TACOS targets for now?

GhostLyrics commented 9 years ago

Should be fixed by #59

dgruss commented 9 years ago

merged #59