Ventoy Forums
Design ventoy (support for setting different backgrounds for different folders). - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: Design ventoy (support for setting different backgrounds for different folders). (/showthread.php?tid=1950)

Pages: 1 2 3


RE: Design ventoy (support for setting different backgrounds for different folders). - nguyen ha thai trong - 02-09-2022

(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


RE: Design ventoy (support for setting different backgrounds for different folders). - serhat100 - 02-10-2022

(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 *****