build/dvd: wants ancient fat configuration to boot
This commit is contained in:
parent
d6d65fc0b4
commit
586b60b941
|
@ -1114,6 +1114,11 @@ EOF
|
|||
setup_efiboot()
|
||||
{
|
||||
local EFIFILE
|
||||
local FATBITS
|
||||
local FATSIZE
|
||||
|
||||
FATSIZE=${3:-"33292"}
|
||||
FATBITS=${4:-"32"}
|
||||
|
||||
if [ ${PRODUCT_ARCH} = "amd64" ]; then
|
||||
EFIFILE=bootx64
|
||||
|
@ -1127,8 +1132,8 @@ setup_efiboot()
|
|||
mkdir -p ${1}.d/EFI/LOADER
|
||||
cp ${2} ${1}.d/EFI/LOADER/${EFIFILE}.efi
|
||||
|
||||
makefs -t msdos -o fat_type=32 -o sectors_per_cluster=1 \
|
||||
-o volume_label=EFISYS -s 33292k ${1} ${1}.d
|
||||
makefs -t msdos -o fat_type=${FATBITS} -o sectors_per_cluster=1 \
|
||||
-o volume_label=EFISYS -s ${FATSIZE}k ${1} ${1}.d
|
||||
}
|
||||
|
||||
setup_stage()
|
||||
|
|
|
@ -53,7 +53,7 @@ if [ -n "${PRODUCT_UEFI}" -a -z "${PRODUCT_UEFI%%*"${SELF}"*}" ]; then
|
|||
UEFIBOOT="${UEFIBOOT} -o no-emul-boot -o platformid=efi"
|
||||
|
||||
setup_efiboot ${STAGEDIR}/efiboot.img \
|
||||
${STAGEDIR}/work/boot/loader.efi
|
||||
${STAGEDIR}/work/boot/loader.efi 2048 12
|
||||
fi
|
||||
|
||||
cat > ${STAGEDIR}/work/etc/fstab << EOF
|
||||
|
|
Loading…
Reference in New Issue