6 mnt_dir
="/tmp/mkbootdisk/mnt"
7 img_file
="/tmp/mkbootdisk/boot.img"
9 [[ -f "$kernel" ]] ||
{ echo need kernel
; exit 1; }
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