public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] switch from gnome/systemd to xfce/openrc borked my system
Date: Mon, 19 Aug 2019 11:39:08 -0400	[thread overview]
Message-ID: <CAGfcS_mSvHbsuYjy9q6DdLT5oTzyFGLHVF4UWh_o9C9N_Y9xaA@mail.gmail.com> (raw)
In-Reply-To: <72845d45-b7c5-37cc-a3af-0a24e0cf9888@st.com>

On Mon, Aug 19, 2019 at 10:42 AM Raffaele Belardi
<raffaele.belardi@st.com> wrote:
>
> Rich Freeman wrote:
> > Next time you do something like this, keep in mind that Gnome and xfce
> > can co-exist on the same system, and so can openrc and systemd.
>
> Good point, I did not know, in particular for the init systems I thought it was exactly
> the opposite.
>

The only area of incompatibility I'm aware of are the
sysvinit-compatibility links.  Both sysvinit and systemd provide
implementations of common utilities like poweroff, halt, reboot,
telinit, and so on.  There is also init itself.

The versions that come with sysvinit are compatible with both sysvinit
and systemd.  If you don't have sysvinit then systemd can supply
these.  Systemd itself doesn't require these utilities but they are
useful both for compatibility and convenience.  (ie "systemctl
poweroff" works fine, as does sending the command via dbus, but
scripts or sysadmins might prefer to be able to just run "poweroff").
The versions of these supplied by systemd are not compatible with
sysvinit.

A USE flag toggles whether systemd installs these utilities.  If it
does then it blocks sysvinit.  So, you just have to switch that USE
flag to install the two in parallel.  If you don't have systemd
install "init" then you do need to have a kernel command line to
launch systemd directly as init.

Offhand I think that is really the only conflict between the two.
Systemd doesn't use anything but those compatibility utils from
sysvinit but it doesn't mind them being around, and nothing in
sysvinit/openrc should even notice that systemd is installed.

As long as you set the USE flag appropriately you can dual-boot
between the two very easily.  The only gotcha is keeping all your
configs up-to-date as openrc and systemd store things in different
places.  When you install systemd it takes a snapshot of many of your
openrc settings but that is a one-time operation.  Some of those
settings are hard to change if systemd isn't running as PID 1 - I
think the wiki has instructions for how to do this.

--
Rich


  reply	other threads:[~2019-08-19 15:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-19  6:29 [gentoo-user] switch from gnome/systemd to xfce/openrc borked my system Raffaele Belardi
2019-08-19  6:41 ` [gentoo-user] " Raffaele Belardi
2019-08-19 11:19   ` Mick
2019-08-19 12:24     ` Raffaele Belardi
2019-08-19 14:20       ` Daniel Frey
2019-08-19 14:25         ` Raffaele Belardi
2019-08-19 14:24       ` Peter Humphrey
2019-08-19 11:51 ` [gentoo-user] " David Haller
2019-08-19 12:32   ` Raffaele Belardi
2019-08-19 13:52 ` Rich Freeman
2019-08-19 14:42   ` Raffaele Belardi
2019-08-19 15:39     ` Rich Freeman [this message]
2019-08-20  6:26     ` [gentoo-user] switch from gnome/systemd to xfce/openrc borked my system - I GIVE UP Raffaele Belardi
2019-08-20 13:56       ` [gentoo-user] " Nuno Silva
2019-08-21  7:26         ` Raffaele Belardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGfcS_mSvHbsuYjy9q6DdLT5oTzyFGLHVF4UWh_o9C9N_Y9xaA@mail.gmail.com \
    --to=rich0@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox