Add ofnet and tftp modules
This commit is contained in:
parent
cf2bba0ef4
commit
e552d93a8b
1 changed files with 3 additions and 3 deletions
|
@ -205,10 +205,10 @@ process_input_dir ()
|
||||||
netmodules="pxe";
|
netmodules="pxe";
|
||||||
ext=0 ;;
|
ext=0 ;;
|
||||||
sparc64-ieee1275) mkimage_target=sparc64-ieee1275-aout;
|
sparc64-ieee1275) mkimage_target=sparc64-ieee1275-aout;
|
||||||
netmodules="";
|
netmodules="ofnet";
|
||||||
ext=img ;;
|
ext=img ;;
|
||||||
*-ieee1275) mkimage_target="${platform}";
|
*-ieee1275) mkimage_target="${platform}";
|
||||||
netmodules="";
|
netmodules="ofnet";
|
||||||
ext=elf ;;
|
ext=elf ;;
|
||||||
*) echo Unsupported platform ${platform};
|
*) echo Unsupported platform ${platform};
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
@ -218,7 +218,7 @@ process_input_dir ()
|
||||||
source ${subdir}/grub.cfg
|
source ${subdir}/grub.cfg
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$grub_mkimage ${config_opt} -d "${input_dir}" -O ${mkimage_target} --output=${grubdir}/core.$ext --prefix=$prefix $modules $netmodules || exit 1
|
$grub_mkimage ${config_opt} -d "${input_dir}" -O ${mkimage_target} --output=${grubdir}/core.$ext --prefix=$prefix $modules $netmodules tftp || exit 1
|
||||||
echo "Netboot directory for ${platform} created. Configure your DHCP server to point to ${subdir}/${platform}/core.$ext"
|
echo "Netboot directory for ${platform} created. Configure your DHCP server to point to ${subdir}/${platform}/core.$ext"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue