Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Design ventoy (support for setting different backgrounds for different folders).
#11
(02-05-2022, 01:54 PM)serhat100 Wrote: (hd1,...)/krd.iso
(hd1,...)/data/krd.iso

It works if I have two krd.iso in any part of the hard disk. Could you please test the following line of code as follows.

set iso_path="${vtoy_iso_part}${chosen_path}"
I have tested all the code posted, but the way of serhat100 boots ok on my laptop
Reply
#12
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.
Reply
#13
(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.
You don't need two krd.iso, just boot from /data/krd iso.
your code Steve2926 successfully boots in grub2 mode (press ctr+r)
Thank you very much
Reply
#14
Where does Steve2926 master set root=(${vtoydev},3) point? Did you define partition 3 of your flash drive?
Reply
#15
(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}
Reply
#16
(02-07-2022, 07:19 AM)nguyen ha thai trong Wrote:
(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}
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.
Reply
#17
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.
Reply
#18
(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)


Reply
#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
#20
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)