mkisofsエラー - ブートイメージ... efibot.imgは許容サイズではありません。

mkisofsエラー - ブートイメージ... efibot.imgは許容サイズではありません。

BIOSまたはEFIサーバーから起動できるrhel-8インストールディスクからカスタムISOを作成しようとしています。 isoを作成するまで、すべてが順調に進みます。次のコマンドを実行すると:

mkisofs -J -R -T -V "NGS-8.4-0 Server" \
    -o ngs-8.4-0.iso \
    -b isolinux/isolinux.bin \
    -c isolinux/boot.cat \
    --no-emul-boot \
    --boot-load-size 4 \
    --boot-info-table \
    --eltorito-alt-boot \
    -e images/efiboot.img \
    -m TRANS.TBL \
    ngs-dvd

次の結果が表示されます。

Creating NGS iso...I: -input-charset not specified, using iso-8859-1 (detected in locale settings)

(bunch of TRANS.TBL output deleted)

Size of boot image is 4 sectors -> No emulation
Size of boot image is 19612 sectors -> genisoimage: Error - boot image '/NGS/ngs-dvd/images/efiboot.img' has not an allowable size.

--eltorito-alt-bootただし、両方のオプション(&)を削除すると、-e images/efiboot.img起動可能なISOが生成されます。私は何が間違っていましたか?

ベストアンサー1

このオプションが2回必要なようです-no-emul-boot。各ブートイメージ(BIOSおよびEFI)ごとに1つずつ。最終的な作業構成は次のとおりです。

/usr/bin/mkisofs -J -R -T -V "NGS-8.4-0 Server" \
    -o ngs-8.4-0.iso \
    -b isolinux/isolinux.bin \
    -c isolinux/boot.cat \
    -no-emul-boot \
    -boot-load-size 4 \
    -boot-info-table \
    -eltorito-alt-boot \
    -e images/efiboot.img \
    -no-emul-boot \
    -m TRANS.TBL \
    ngs-dvd

おすすめ記事