Skip to main content
Topic: Changing init system and quirks (Read 840 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Changing init system and quirks

Hi! I have a simple question- can I change the init system *after* I install Artix? I want to be able to try another init system without reinstalling.

Also, are there any strange issues with OpenRC, runit or s6? Any quirks (like certain packages not working)? I hadn't had much before, but I just wanna make sure.
Thanks for reading!

Re: Changing init system and quirks

Reply #1
Hi! I have a simple question- can I change the init system *after* I install Artix? I want to be able to try another init system without reinstalling.
Yes. That is an advanced topic, though. You need to be comfortable with pacman and editing configuration files.
Also, are there any strange issues with OpenRC, runit or s6? Any quirks (like certain packages not working)? I hadn't had much before, but I just wanna make sure.
If you notice any bugs, do report them, keeping in mind considerations on how to do that.

Re: Changing init system and quirks

Reply #2
Well, can you instruct me- or at least point me to a resource on how to do it? Editing config files is no problem for me, at worst something I won't understand the docs and ask about it here or somewhere else. Although I've lost my familiarity with pacman a tiny bit...

Re: Changing init system and quirks

Reply #3
https://wiki.artixlinux.org/Main/Migration

This is about migration from Arch, but some parts can be used to migrate between inits as well. (For example, "Install your chosen init".) Migration is best done from Live ISO chroot. If you don't know what I'm talking about, better to not even try it. Quote from the guide:
Quote
Note: Migration is for advanced users that know what they are doing. In general, doing a fresh installation is the preferred way to get started on Artix.

 

Re: Changing init system and quirks

Reply #4
In general, find all your current init packages and replace them with their other init equivalent (as root):
Code: [Select]
# pacman -Syy; for p in $(pacman -Qq | grep \\\-openrc); do pacman -Rdd $p; pacman -S $(echo $p | sed s/openrc/runit/); done
This can even be performed within a running system, although a live ISO and a chroot would be better. You won't be able to normally reboot or poweroff right after you switch init, obviously; sync and push the button.