Artix Linux Forum

General Category => Discussion about Artix => Topic started by: derby on 10 November 2021, 14:43:33

Title: Changing init system and quirks
Post by: derby on 10 November 2021, 14:43:33
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!
Title: Re: Changing init system and quirks
Post by: strajder on 10 November 2021, 15:13:19
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 (https://forum.artixlinux.org/index.php/topic,1923.0.html).
Title: Re: Changing init system and quirks
Post by: derby on 10 November 2021, 16:09:51
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...
Title: Re: Changing init system and quirks
Post by: strajder on 10 November 2021, 16:41:03
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 (https://wiki.artixlinux.org/Main/Migration#Install_Your_Choosen_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.
Title: Re: Changing init system and quirks
Post by: nous on 12 November 2021, 00:07:48
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.