Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Design ventoy (support for setting different backgrounds for different folders).
#19
(02-07-2022, 06:09 PM)serhat100 Wrote:
(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.
Please post your complete menu that you are using.
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)


# ISO file must be located at /data/krd.iso
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
Reply


Messages In This Thread
RE: Design ventoy (support for setting different backgrounds for different folders). - by nguyen ha thai trong - 02-07-2022, 07:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)