Design ventoy (support for setting different backgrounds for different folders). - Printable Version +- Ventoy Forums (https://forums.ventoy.net) +-- Forum: Ventoy General Use —— Ventoy 使用交流 (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) |
RE: Design ventoy (support for setting different backgrounds for different folders). - nguyen ha thai trong - 02-05-2022 (02-05-2022, 01:54 PM)serhat100 Wrote: (hd1,...)/krd.isoI have tested all the code posted, but the way of serhat100 boots ok on my laptop RE: Design ventoy (support for setting different backgrounds for different folders). - Steve2926 - 02-05-2022 When krd iso kernel boots it will search for the iso file in the /data folder. It then loads more files after mounting the iso file again within Linux using code in the init scripts. You don't need two krd.iso, just boot from /data/krd iso. RE: Design ventoy (support for setting different backgrounds for different folders). - nguyen ha thai trong - 02-06-2022 (02-05-2022, 10:58 PM)Steve2926 Wrote: When krd iso kernel boots it will search for the iso file in the /data folder. It then loads more files after mounting the iso file again within Linux using code in the init scripts.your code Steve2926 successfully boots in grub2 mode (press ctr+r) Thank you very much RE: Design ventoy (support for setting different backgrounds for different folders). - serhat100 - 02-07-2022 Where does Steve2926 master set root=(${vtoydev},3) point? Did you define partition 3 of your flash drive? RE: Design ventoy (support for setting different backgrounds for different folders). - nguyen ha thai trong - 02-07-2022 (02-07-2022, 07:01 AM)serhat100 Wrote: Where does Steve2926 master set root=(${vtoydev},3) point? Did you define partition 3 of your flash drive?boot from any partition, replace set root=(${vtoydev},3) with set root=${vtoy_iso_part} RE: Design ventoy (support for setting different backgrounds for different folders). - serhat100 - 02-07-2022 (02-07-2022, 07:19 AM)nguyen ha thai trong Wrote:when I do it that way it doesn't execute the code at all. If there are two krd.iso then it will load successfully.(02-07-2022, 07:01 AM)serhat100 Wrote: Where does Steve2926 master set root=(${vtoydev},3) point? Did you define partition 3 of your flash drive?boot from any partition, replace set root=(${vtoydev},3) with set root=${vtoy_iso_part} RE: Design ventoy (support for setting different backgrounds for different folders). - Steve2926 - 02-07-2022 The search line in the grub2 commands will find the iso on any device at the path specified, but the kernel will load the same iso again and search all devices for the iso file ONLY if it is in the /data folder. Please post your complete menu that you are using. RE: Design ventoy (support for setting different backgrounds for different folders). - serhat100 - 02-07-2022 (02-07-2022, 05:48 PM)Steve2926 Wrote: The search line in the grub2 commands will find the iso on any device at the path specified, but the kernel will load the same iso again and search all devices for the iso file ONLY if it is in the /data folder.https://www.tnctr.com/topic/1104765-alta..._g4e-1064/ menuentry "${chosen_path}" --class=kapersky { set iso_path="/data/krd.iso" set lang="en" if cpuid -l; then set _kernel="k-x86_64"; else set _kernel_="k-x86"; fi loopback loop $iso_path linux (loop)/boot/grub/${_kernel} net.ifnames=0 lang=${lang} dostartx trace isoloop=krd.iso initrd (loop)/boot/grub/initrd.xz } What caught my attention was that if linux.iso is at the root of any partition of the hdd in the above system, the code is executed. If we put the iso file under a directory, no code is executed. The code does not work when krd.iso is put into the data folder as well. (sorry for bad english please) RE: Design ventoy (support for setting different backgrounds for different folders). - nguyen ha thai trong - 02-07-2022 (02-07-2022, 06:09 PM)serhat100 Wrote:# ISO file must be located at /data/krd.iso(02-07-2022, 05:48 PM)Steve2926 Wrote: The search line in the grub2 commands will find the iso on any device at the path specified, but the kernel will load the same iso again and search all devices for the iso file ONLY if it is in the /data folder.https://www.tnctr.com/topic/1104765-alta..._g4e-1064/ menuentry "Kaspersky Rescue Disk 2018 (PTN 3)" { set iso_path="/data/krd.iso" set lang="en" set root=${vtoy_iso_part} # en=English; ru=Russian # if [ x$lang != xru ]; then set lang=en; fi # booting ${iso_path} search -s root -f ${iso_path} loopback loop ${iso_path} if cpuid -l; then set _kernel="k-x86_64"; else set _kernel_="k-x86"; fi linux (loop)/boot/grub/${_kernel} net.ifnames=0 lang=${lang} dostartx isoloop=krd.iso initrd (loop)/boot/grub/initrd.xz } Note: you have to press ctrl+r to enter grub2 mode when coding in Steve2926's way RE: Design ventoy (support for setting different backgrounds for different folders). - serhat100 - 02-09-2022 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? |