Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I gave up with systemd - how to prepare the switch?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Sat Oct 14, 2017 9:21 pm    Post subject: I gave up with systemd - how to prepare the switch? Reply with quote

Because of various mishappenings I'm switching from systemd to OpenRC on my main PC too.

I'd guess I need to switch the profile and change the "init" kernel command line setting. Then make sure /etc/inittab is in proper shape or alternatively prepare for openrc-init. I'd really like to give a test for openrc-init. So I'll try it out first at least.

Any wise words before I start the process?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Sun Oct 15, 2017 8:17 am    Post subject: Re: I gave up with systemd - how to prepare the switch? Reply with quote

Zucca wrote:
I'd guess I need to switch the profile and change the "init" kernel command line setting.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Mon Oct 16, 2017 5:04 pm    Post subject: Reply with quote

Thanks for the tips. I would have forgot to configure the kernel otherwise.

One thing that worked pretty well with systemd was the timers.
Does any of the cron implementations have "if idle for X time, then run" -feature?
I've heard that anacron is one of the most featurefull.

Also if anyone have any experiences on using openrc-init... how it compares to the SysV init?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Mon Oct 16, 2017 8:59 pm    Post subject: Reply with quote

One thing to consider is that systemd will play nicely with openRC so you can do some testing. Add a grub entry with an appropriate init= line. If it fails to boot up you still have your working configuration readily available.

fcron supposedly has the ability to check for idleness but I haven't played with this feature. Example 2-4 in the documentation
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Mon Oct 16, 2017 10:51 pm    Post subject: Reply with quote

Thanks! Good tips.
I'll configure my kernel and bootloader accordingly.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Tue Oct 17, 2017 11:30 pm    Post subject: Reply with quote

I shaped up an old wiki page meant specifically for this. Check it out and let me know if the instructions are good:

https://wiki.gentoo.org/wiki/User:Zlg/Drafts/Gentoo_without_systemd

EDIT: As mentioned in the Talk page, I lost a good amount of work on this page due to a power outage. I'll try to get some motivation to re-do it. Be sure to save your work in a text editor before leaving a browser session open! I can't wait to do documentation through git. :P


Last edited by zlg on Tue Nov 07, 2017 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Wed Oct 18, 2017 12:31 pm    Post subject: Reply with quote

Thanks. Good guide there.

I have lots on blockers right now. I'm slowly resolving them.
Then when I have no blockers anymore I'll run the final command to remove systemd and then reboot.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Wed Oct 18, 2017 4:04 pm    Post subject: Reply with quote

Ok. Blockers removed...
Now if I update my system systemd will be removed and openrc+eudev will come as a replacement. I just hope I can even shutdown safely. :P
I might need to create a live USB-stick if not everything isn't in place. I don't have /etc/inittab, but I assume it will be installed with sysvinit. So just before reboot I'll see if it needs some editing...
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Wed Oct 18, 2017 9:18 pm    Post subject: Reply with quote

Reboot was succesful in a way that I didn't need to use any live boot media. I even can log in. I booted with oppenrc-init (I'm curious to see what it will offer).
Worst problem is that filesystems (other than root) didn't get mounted. I manually mounted all them. Then manually brought up my InfiniBand networking.
So, at the moment everything's fine. I start configurin things that are "left empty" when I removed systemd.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Wed Oct 25, 2017 10:30 am    Post subject: Reply with quote

Just because I'm curious, I'm gonna use elogind on my ~amd64 desktop. The same PC which now has OpenRC instead of systemd.

If anyone has experience and any tips on problems I might encounter, please enlighten me. :)
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Wed Nov 01, 2017 1:30 pm    Post subject: Reply with quote

Zucca wrote:
Just because I'm curious, I'm gonna use elogind on my ~amd64 desktop. The same PC which now has OpenRC instead of systemd.

If anyone has experience and any tips on problems I might encounter, please enlighten me. :)


INSTALL_MASK="/usr/lib/systemd /etc/systemd" in /etc/portage/make.conf to avoid installing all the systemd bloats.
non problems with elogind, just install it (I have acl pam use flags set.)
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Fri Nov 03, 2017 11:16 am    Post subject: Reply with quote

tranquilcool wrote:
INSTALL_MASK="/usr/lib/systemd /etc/systemd" in /etc/portage/make.conf to avoid installing all the systemd bloats.
non problems with elogind, just install it (I have acl pam use flags set.)


Thanks. I thought of setting the INSTALL_MASK, but decided not to. Those files don't take any significant space... And while it's very unlikely that I switch back to systemd it's good to have them there (for now at least). For example nosh has utility to convert systemd service units to nosh services. The reason why I had systemd in the first place was because I have installed Fedora to few other people (when windows had died and I'm totally unable to fix windows nowdays). Learning the systemd way was kinda my intention. But it evetually boiled down to systemd doing some strange hickups and even freezing the system, even when I used stable versions of systemd. I hope systemd gets fixed, but I think it'll take a long time. So instead of fighting systemd on my main PC, I'll fight it on those Fedora systems.

I'm currently using OpenRC + SysVinit. I tried to use openrc-init, but for some reason it activated 'shutdown' runlevel at boot. When I got to agetty login all the non-root partitions had been unmounted and root was ro. I kinda would like to have the simplicity of openrc-init, but SysVinit will do just fine. I'll try out openrc-init later.

Elogind works fine now. I haven't tested suspend/hibernate yet. I have configured metalog for my needs. I still need to decide which cron variant I want...

So far the system works and no unstability issues! \o/
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3135

PostPosted: Fri Nov 03, 2017 5:52 pm    Post subject: Reply with quote

Quote:
I kinda would like to have the simplicity of openrc-init, but SysVinit will do just fine. I'll try out openrc-init later.
Busybox* :lol:
One downside is it does not support runlevels.
Quote:
I still need to decide which cron variant I want

Roll a dice AKA "virtual/cron + anacron".
All crons are mostly drop-in replacements for each other.
Unless you need support for @reboot time pattern, which is an extension to the regular syntax, or something more fancy, focused by some particular implementation.


* Yeah, I do like busybox. I don't use it on my "regular" systems because openrc works well for me, but I've been using it in some "embeded" images and I'd definitely give it a shot should I need another init for a full-blown box.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Wed Nov 08, 2017 10:21 am    Post subject: Reply with quote

I settled with dcron.

I don't know if other crons have these features, but
Code:
* * * * * FREQ=1d/30m <program>
... runs the program once a day, at any time. If the program exits with status 11 (EAGAIN) dcron runs it again in 30 minutes.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum