Verify presence of mcopy for bio key creation
This commit is contained in:
parent
9c4931058c
commit
709677e574
1 changed files with 9 additions and 0 deletions
9
init.sh
9
init.sh
|
@ -16,15 +16,18 @@ boot_type="efi64"
|
|||
repo_dir="repo"
|
||||
tmp_dir="tmp"
|
||||
current_dir=`pwd`
|
||||
|
||||
# In Archlinux, this is default files for syslinux...
|
||||
conf_file="conf/archlinux.conf"
|
||||
key_mountpoint="/mnt/usbstick"
|
||||
device=""
|
||||
|
||||
# constant
|
||||
APP_NAME="Debian USB Creator"
|
||||
VERSION="1.99.0"
|
||||
SYSLINUX_EXE=$(which syslinux)
|
||||
PARTED_EXE=$(which parted)
|
||||
MCOPY=$(which mcopy)
|
||||
SYSLINUX_FILES="menu.c32 vesamenu.c32 libutil.c32 libcom32.c32"
|
||||
SYSLINUX_BIOS_FILES=""
|
||||
SYSLINUX_EFI_FILES="ldlinux.e64"
|
||||
|
@ -225,6 +228,12 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$boot_type" == "bios" ] && [ -z "$MCOPY" ]
|
||||
then
|
||||
printf "Bios key creation need mcopy from mtools packages\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
bootfiles_Debian="http://ftp.debian.org/debian/dists/stable/main/installer-${debian_arch}/current/images/hd-media"
|
||||
if [ $archive -eq 1 ]
|
||||
then
|
||||
|
|
Reference in a new issue