Author Topic: [SOLVED] possible grub2 default file typo error?  (Read 3026 times)

aus9

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
[SOLVED] possible grub2 default file typo error?
« on: Sat Jul 30 05:01:57 2022 »
I was playing around with some boot codes and my private update-grub command and on reboot found an init line
which comes from /etc/default/grub

It had a "default" entry which I failed to spot initially that read
Quote
# GRUB_CMDLINE_LINUX_DEFAULT="quiet verbose=no"
# Replace command below /sbin/init with
# /sbin/runit-init  for runyx init
# /sbin/systemd-init for systemd init
GRUB_CMDLINE_LINUX="init=/sbin/init"
"

EDIT fix up line as I have checked the base config. And had not backed up before changing

1) I believe we have
/sbin/run-init
/sbin/systemd-init

2) but I can NOT boot with a menu entry stanza of "/sbin/run-init"
ignoring the fact that I installed into a spare partition my menu that boots for me reads
linux /boot/kernel-stable root=/dev/sda3 ro quiet <and some other stuff>

thanks for reading
« Last Edit: Fri Aug 05 04:25:16 2022 by aus9 »

spiky

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: possible grub2 default file typo error?
« Reply #1 on: Sat Jul 30 06:15:51 2022 »
Hi aus9

Yes it is possjble to boot with other inits, Runit and SystemD are availbe. The default is /sbin/init "SystemV".
To boot from runit-init you would need to install
Code: [Select]
sudo cards install runyx and
Code: [Select]
sudo cards install systemd.
Then you can change it on the kernel line.
Quote
init=sbin/runit-init
or
Quote
init=sbin/systemd-init

Hope this helps

aus9

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
Re: possible grub2 default file typo error?
« Reply #2 on: Sat Jul 30 06:59:10 2022 »
I have over written openbox as I had some troubles.  Just checked the init=line and editted above.

mark as solved ....Thanks
« Last Edit: Fri Aug 05 04:26:04 2022 by aus9 »