Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Design ventoy (support for setting different backgrounds for different folders).
#21
(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
Reply
#22
Thumbs Up 
(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 *****
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)