WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?  (Read 2401 times)

Offline idoit

  • Newbie
  • *
  • Posts: 13
How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« on: April 25, 2023, 06:56:38 AM »
Hi everyone,


I need to use GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT for TCL. In other distributions this is easy. How can I do this in TCL?


Also the package grub2-multi does not include /etc/default/grub. Why is that?

Online gadget42

  • Hero Member
  • *****
  • Posts: 801
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #1 on: April 25, 2023, 02:36:50 PM »
on debian based systems the /etc/default/grub can be copied over from /usr/share/grub/default/grub
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline idoit

  • Newbie
  • *
  • Posts: 13
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #2 on: April 26, 2023, 12:20:17 AM »
on debian based systems the /etc/default/grub can be copied over from /usr/share/grub/default/grub


Thanks for the reply!


I am aware of that, but in a TCL install, I need this modification and the only grub package from searching tce_ab is grub2_multi which doesn't included such file. Any leads?

Online gadget42

  • Hero Member
  • *****
  • Posts: 801
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline idoit

  • Newbie
  • *
  • Posts: 13
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #4 on: April 26, 2023, 08:43:57 AM »
Are these for dual booters who already have another Linux installed on their computer?
Sorry I should have prefaced that this is to install TCL on a clean HDD (without any prior OS/data) - or a clean slate virtual machine.

Offline mocore

  • Hero Member
  • *****
  • Posts: 645
  • ~.~
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #5 on: April 27, 2023, 08:09:36 AM »

the gist i get/have got wrt booting generally has been "its your problem"

that said (afaik) perhaps this program  : https://sourceforge.net/p/boot-repair/home/Home/

can help give you/us some relevant information about your current config ?

I need to use GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT for TCL.

they look like environment variables used by "some grub script" to add / append options to the kernel command line
ref : https://unix.stackexchange.com/questions/440961/grub-cmdline-linux-default-vs-grub-cmdline-linux

In other distributions this is easy. How can I do this in TCL?

probably the answer is write an equivalent script to read the vars and update grub.cfg

>In other distributions this is easy.
easy === pre-configured  ;)

Also the package grub2-multi does not include /etc/default/grub.
Why is that?
probably only the extension author can answer that
see : http://tinycorelinux.net/12.x/x86/tcz/grub2-multi.tcz.info ... i presume you followed the steps from grub2-multi.tcz.info?

... the build script might give some hints ?
http://tinycorelinux.net/12.x/x86/tcz/src/grub2-multi/compile_grub2-multi
idk tbh

good luck!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14823
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #6 on: April 27, 2023, 10:24:10 AM »
Also the package grub2-multi does not include /etc/default/grub. Why is that?

..because sudo make install didn’t install a file of that name.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14823
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #7 on: April 27, 2023, 10:27:48 AM »
Are these for dual booters who already have another Linux installed on their computer?
Sorry I should have prefaced that this is to install TCL on a clean HDD (without any prior OS/data) - or a clean slate virtual machine.

If you search these forums there are instructions on how to make a dual legacy bios/uefi boot setup.

aus9

  • Guest
Re: How to set GRUB_CMDLINE_LINUX_DEFAULT in TCL?
« Reply #8 on: April 27, 2023, 10:32:01 AM »
Hi

I think OP wants to use things from another distro here? So
Quote
I need to use GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT for TCL

post what you want to have on those lines and we convert them to lines, phrases, terms etc to use on TC in your current grub.cfg.

Here is an example from my Debian that we can make TC
Quote
GRUB_CMDLINE_LINUX_DEFAULT="quiet"

right so we just add it your linux line.
eg
Quote
linux /boot/vmlinuz64 quiet lst=14.lst  home=sda3 opt=sda3 tce=sda3 LANG=en_AU.UTF.8

and bonus, as we have grub.cfg that is raw and not generated from /etc/grub.d, no need to run update-grub