Thu Jun 16 14:14:18 2022 UTC

Change the default init system

Introduction

NuTyX provides three init system :

SysVinit

runyx

systemd

How to proceed

Install the init system

Init systems:
runyx
sudo cards install runyx
systemd
sudo cards install systemd

Ajust GRUB

Edit /etc/default/grub filex:

Modifiy this line : "GRUB_CMDLINE_LINUX"

To boot with systemd : GRUB_CMDLINE_LINUX="init=/sbin/systemd-init"

To boot with Runyx : GRUB_CMDLINE_LINUX="init=/sbin/runit-init"

Make the new grub configuration effective

To generate the new grub configuration

grub-mkconfig -o /boot/grub/grub.cfg

Remove an init system

Init systems:
runyx
sudo cards remove -a runyx
systemd
sudo cards remove -a systemd

Warning

You must not remove the sysvinit package because it contains needed libraries for the startup of the system.

Related articles

Related : install-nutyx