02-09-2022, 06:18 PM
(02-09-2022, 01:23 PM)serhat100 Wrote: If the krd.iso file is in any part of the hdd, in the main directory and in the data folderthe code 'configfile ($vtoy_dev,1)/ventoy/isocfg/${chosen_path}.cfg' will error when linux.iso is in the directory of the partition. Just kdr.iso is in the data directory and fix the code to the following in grub.cfg
the following code boots
'configfile ($vtoy_dev,1)/ventoy/isocfg/${chosen_path}.cfg' but it doesn't boot if only data/krd.iso. Here's how data/krd.iso boots.
When 'configfile ($vtoy_dev,1)/ventoy/isocfg/krd.iso.cfg' is edited, it will boot again and the same happens in other linux.iso. Do you have any good suggestions for this?
regexp --set=1:name '.*/(.*)$' "${vtoy_iso_part}${vt_chosen_path}"
configfile ($vtoy_dev,1)/ventoy/isocfg/${name}.cfg
So your code kdr.iso.cfg will still boot ok
Note: kdr.iso must be in the data directory of the partition