Ventoy Forums

Full Version: Design ventoy (support for setting different backgrounds for different folders).
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(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 folder
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?
the 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
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
(02-09-2022, 06:18 PM)nguyen ha thai trong Wrote: [ -> ]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
thank you so much @nguyen ha thai trong *****
Pages: 1 2 3