Hello everyone, happy new year
I wonder if it’s possible to create a grub entry to boot directly to CLI instead of booting to the DE.
Any ideas on how to accomplish this?
Hello everyone, happy new year
I wonder if it’s possible to create a grub entry to boot directly to CLI instead of booting to the DE.
Any ideas on how to accomplish this?
I wonder if you could create a custom.cfg
in /boot/grub, copy over your boot entry from grub.cfg and add 3 to the boot parameters, perhaps that would work.
Haven’t been using Grub for a while and currently don’t have a system with Grub to test.
This is a how-to for editing boot parameters from Grub boot menu:
But this will work only once.
Hm, I’ll try to create a 42_custom file in /etc/grub.d/ folder.
This 42_custom file will be a copy of the 10_linux file, but with that parameter $vt_handoff 3
Edit:
Added this to the kernel line of the 42_custom file:
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args} $vt_handoff 3
It works, but I got a mess…
The 42_custom added several entries and not only one…
Now I need to learn how to make 42_custom add only one entry, CLI boot
You only need to add the ‘3’ at the end of the boot command; the ‘$vt_handoff’ is not required.
You are right…
Just found that I don’t need a grub entry for that…
I can just press E and change the kernel cmd line by adding a 3 to the end of that and press CTRL + X and boom, boot to CLI
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.