WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] How to load extension when booting with Grub2  (Read 2009 times)

Offline gam

  • Jr. Member
  • **
  • Posts: 53
[Solved] How to load extension when booting with Grub2
« on: January 21, 2021, 09:24:31 AM »
I have a grub.cfg as
Code: [Select]
$ cat /mnt/sdc2/EFI/BOOT/grub/grub.cfg
loadfont unicode
insmod all_video
set gfxmode=1366x768x32
set gfxpayload=keep
set gfxterm_font=unicode
terminal_output gfxterm

search --no-floppy --fs-uuid --set=root d4432cde-d21a-4d40-b44b-f097ce72cdba

menuentry "core" {
linux /boot/vmlinuz quiet text tce=UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba" waitusb=10:UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba"
initrd /boot/rootfs.gz /boot/modules.gz
}

menuentry "core64" {
linux /boot/vmlinuz64 quiet text tce=UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba" waitusb=10:UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba"
initrd /boot/rootfs.gz /boot/modules64.gz
}

menuentry "corepure64" {
linux /boot/vmlinuz64 quiet text tce=UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba"/tce64 waitusb=10:UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba"
initrd /boot/rootfs64.gz /boot/modules64.gz
}

menuentry "corepure64 base" {
linux /boot/vmlinuz64 quiet text tce=UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba"/tce64 waitusb=10:UUID="d4432cde-d21a-4d40-b44b-f097ce72cdba" base norestore
initrd /boot/rootfs64.gz /boot/modules64.gz
}
Source: http://forum.tinycorelinux.net/index.php/topic,19364.0.html
I want to load extensions (onboot and ondemand) from sdb1.
Code: [Select]
$ ls /mnt/sdb1/tce64
ondemand      optional       onboot.lst       xbase.lst
So how to modify the grub.cfg?
« Last Edit: January 21, 2021, 02:36:13 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: How to load extension when booting with Grub2
« Reply #1 on: January 21, 2021, 09:37:25 AM »
Hi amg
... So how to modify the grub.cfg?
You don't. You use the  Apps  utility for that. Click on the icon that looks like a screw head with a blue down arrow on it.
When the utility comes up:
Click  Apps->OnBoot Maintenance  to add/remove items in OnBoot.
Click  Apps->OnDemand Maintenance  to add/remove items in OnDemand.

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: [Solved] How to load extension when booting with Grub2
« Reply #2 on: January 21, 2021, 10:34:31 AM »
thanks

Offline mocore

  • Hero Member
  • *****
  • Posts: 642
  • ~.~
Re: How to load extension when booting with Grub2
« Reply #3 on: January 21, 2021, 02:01:35 PM »
Hi rich & amg 

Hi amg
... So how to modify the grub.cfg?
You don't. ...

unless alternatively ( as mentioned in http://tinycorelinux.net/faq.html#bootcodes )

you could create a "xyz.lst" file and use the "lst=xyz.lst" option  mentioned in the above link

Code: (" from  tinycorelinux.net/faq.html#bootcodes ") [Select]
tinycore lst=yyy.lst                Load alternate static yyy.lst on boot
this would require adding the string : "lst=xyz.lst"
to the linux kernel options passed from *whatever* bootloader config file !