`isolabel` should be sanitized
b0ch3nski opened this issue · 5 comments
b0ch3nski commented
isolabel
can contain chars that mkfs.vfat
cannot accept
Line 252 in 9f855fa
mkfs.vfat: Labels with characters *?.,;:/\|+=<>[]" are not allowed
ValdikSS commented
I assume you have a custom ISO file. Custom ISO files are generally not supported as they may contain many modifications as Windows installer system is pretty flexible, which are not handled by windows2usb.
b0ch3nski commented
Agreed, but replacing the not allowed chars would be pretty much simple and protect from at least this kind of issue ;)
Manouchehri commented
@b0ch3nski What did you end up using to create the USB?
EDIT: Ventoy worked for me.
b0ch3nski commented
@b0ch3nski What did you end up using to create the USB?
@Manouchehri Monkey-patch the code - remove these lines:
isolabel="$(get_iso_name "$isopath")"
if [ $? -ne 0 ]
then
isolabel=""
fi
It will create the empty ISO label which will avoid the FAT32 limitations.
ValdikSS commented
Fixed in 0.2.2