clalancette / pycdlib

Python library to read and write ISOs
GNU Lesser General Public License v2.1
147 stars 38 forks source link

pycdlib.pycdlibexception.PyCdlibInvalidInput: Must be a path starting with / when using genisoimage.py #120

Open j-deng opened 11 months ago

j-deng commented 11 months ago

python.exe genisoimage.py -v -iso-level 1 -no-pad -b boot -c boot.cat -b EFI/BOOT/BOOTAA64.EFI -b images/efiboot.img -no-emul-boot -allow-lowercase -o onedir.iso D:\tmp\onedir

I want to use genisoimage.py to replace genisoimage.exe but get error with some options which works on exe version.

it echo errors pycdlib.pycdlibexception.PyCdlibInvalidInput: Must be a path starting with / with -b option but make success without -b

OS: Windows

Folder Structure:

genisoimage.py
onedir
  | boot
  | EFI/BOOT/BOOTAA64.EFI
  | images/efiboot.img
j-deng commented 11 months ago

Use -b efiboot.img is working but -b images/efiboot.img will print the error pycdlib.pycdlibexception.PyCdlibInvalidInput: Must be a path starting with /.