#!/bin/sh

: ${embed_conf:=$(dirname "$0")/search_root.conf}

set -x

(
  cat /usr/lib/grub/i386-pc/lnxboot.img
  grub-mkimage -O i386-pc -c "$embed_conf" biosdisk part_msdos ext2 ntfs search_fs_file
) >boot.bin
