Official NuTyX forums

Help => General => Topic started by: aus9 on Sat Jul 30 05:01:57 2022

Title: [SOLVED] possible grub2 default file typo error?
Post by: aus9 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
Title: Re: possible grub2 default file typo error?
Post by: spiky 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
Title: Re: possible grub2 default file typo error?
Post by: aus9 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