Skip to content

Commit

Permalink
add format if raw is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 6, 2017
1 parent d953a40 commit 5e66e78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dev-utils/fai-kvm
Expand Up @@ -2,7 +2,7 @@

# fai-kvm, start kvm host for testing FAI software
#
# Author: Thomas Lange, Uni Koeln, 2011-2015
# Author: Thomas Lange, Uni Koeln, 2011-2017
# License: GPL v2 or any later version

fix="-k en-us -cpu host -global isa-fdc.driveA= " # if loading cirrusfb (via pcimodules and modprobe cirrusfb) causes errors in kvm
Expand All @@ -25,8 +25,11 @@ boot_disk() {

# boot from disk
[ -n "$1" ] && disk=$1
case "$disk" in
*.raw) f=",format=raw" ;;
esac
set -x
kvm $gopt -boot order=c $net $disk
kvm $gopt -boot order=c $net -drive file=$disk,if=virtio$f
}
# - - - - - - - - - - - - - - - - - - - - - - - - -
boot_pxe() {
Expand Down

0 comments on commit 5e66e78

Please sign in to comment.