kvm: bios: make the bios map the tss pages at unavailble memory to the guest
[qemu-kvm/fedora.git] / kvm / scripts / mkbootdisk
blob3b7f7c0b400998abe5e4e0a5ff2e86d19b66c0ac
1 #!/bin/sh
3 set -e
5 kernel="$1"
6 mnt_dir="/tmp/mkbootdisk/mnt"
7 img_file="/tmp/mkbootdisk/boot.img"
9 [[ -f "$kernel" ]] || { echo need kernel; exit 1; }
11 mkdir -p $mnt_dir
13 [[ -d "$mnt_dir" ]] || { echo mount dir err; exit 1; }
15 dd < /dev/zero > $img_file bs=1M count=10
16 mkfs -t vfat $img_file
18 mount -o loop $img_file $mnt_dir
20 cp "$kernel" $mnt_dir/kernel
22 cat <<EOF > $mnt_dir/SYSLINUX.CFG
23 DEFAULT kernel
24 APPEND console=ttyS0
25 EOF
27 umount $mnt_dir
29 syslinux $img_file