Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Removing openrc after installing systemd

172 views
Skip to first unread message

Alec Ten Harmsel

unread,
Dec 26, 2014, 10:20:02 AM12/26/14
to
Just curious; is this even possible? `emerge --depclean --ask --verbose
sys-apps/openrc` gives:

Calculating dependencies... done!
sys-apps/openrc-0.12.4 pulled in by:
@system requires sys-apps/openrc
net-misc/netifrc-0.2.2 requires >=sys-apps/openrc-0.12
virtual/service-manager-0 requires sys-apps/openrc

wat? netifrc is a bunch of udev/networking stuff; I use wicd, is this
even necessary? FYI, `emerge --depclean --ask --verbose netifrc` gives:

Calculating dependencies... done!
net-misc/netifrc-0.2.2 pulled in by:
sys-apps/openrc-0.12.4 requires net-misc/netifrc

I'd rather not have both installed, although it doesn't really matter
that much. It makes sense that @system requires virtual/service-manager,
but why on earth does systemd not provide that virtual? I just checked
the ebuild and eclass to make sure.

Alec

Daniel Frey

unread,
Dec 26, 2014, 11:00:03 AM12/26/14
to
I installed systemd some time ago but I'm keeping openrc around in case
it doesn't boot.

I wonder if it's possible to remove openrc and have systemd only, I've
never tried...

These are just the scripts and support stuff openrc uses for networking,
I myself would keep it around in case the other methods fail.

Dan

Canek Peláez Valdés

unread,
Dec 26, 2014, 11:40:04 AM12/26/14
to
Mmmh. No ebuild in the tree "provides" any virtual. A virtual *specifies* which packages can satisfy it:

RDEPEND="
prefix? ( >=sys-apps/baselayout-prefix-2.2 )
!prefix? (
|| (
sys-apps/openrc
kernel_linux? ( || (
sys-apps/systemd
sys-process/runit
virtual/daemontools
) ) ) )"


This is from virtual/service-manager/service-manager-0.ebuild. As you can see, with kernel_linux, systemd satisfies the virtual.

OpenRC is being pulled in by something else, I believe netifrc. Check what is pulling netifrc, which in turn pulls in OpenRC. I think you should be able to get rid of it.

It's totally possible to uninstall OpenRC; I haven't had it installed in years. Nowadays you don't even need to do any tricks to do it.

(I have sys-fs/udev-init-scripts in package.provided, but only because it's completely useless to me: those are the udev scripts for OpenRC when sys-apps/systemd is installed instead of sys-fs/udev).

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México

Alec Ten Harmsel

unread,
Dec 26, 2014, 1:00:04 PM12/26/14
to
*facepalm*... I didn't look at this. embarrassing.




This is from virtual/service-manager/service-manager-0.ebuild. As you can see, with kernel_linux, systemd satisfies the virtual.

OpenRC is being pulled in by something else, I believe netifrc. Check what is pulling netifrc, which in turn pulls in OpenRC. I think you should be able to get rid of it.

OpenRC is pulled in by @system - even `emerge -ca openrc netifrc` won't proceed because OpenRC is in @system. As for kernel_linux, is this something that can go in make.conf (i.e. KERNEL="linux")?



It's totally possible to uninstall OpenRC; I haven't had it installed in years. Nowadays you don't even need to do any tricks to do it.

I got rid of it (emerge --unmerge, hehe). Some red text warning me of removing system software, but whatever. Subsequent world updates and depcleans show no changes except getting rid of sysvinit.

Thanks Canek.

Alec

Michael Orlitzky

unread,
Dec 26, 2014, 1:20:02 PM12/26/14
to
On 12/26/2014 12:56 PM, Alec Ten Harmsel wrote:
>>
>> It's totally possible to uninstall OpenRC; I haven't had it installed
>> in years. Nowadays you don't even need to do any tricks to do it.
>
> I got rid of it (emerge --unmerge, hehe). Some red text warning me of
> removing system software, but whatever. Subsequent world updates and
> depcleans show no changes except getting rid of sysvinit.
>
> Thanks Canek.

This isn't totally safe yet, but you'll be fine if you know what you're
doing. OpenRC is still in @system because it provides
/etc/init.d/functions.sh, and some other packages still depend on that
location. You can check b.g.o. for a list of packages that need to be
fixed to depend on the newer /lib/gentoo/functions.sh:

https://bugs.gentoo.org/buglist.cgi?quicksearch=functions.sh

Canek Peláez Valdés

unread,
Dec 26, 2014, 1:20:02 PM12/26/14
to
Yeah; you are right, I had to put

-*sys-apps/openrc
-*sys-apps/net-tools

in /etc/portage/profile/packages so portage would stop bothering me about those two. Sorry, I forgot about that.

> As for kernel_linux, is this something that can go in make.conf (i.e. KERNEL="linux")?

I think you should not play with that. But that's me.
 
> It's totally possible to uninstall OpenRC; I haven't had it installed in years. Nowadays you don't even need to do any tricks to do it.
>
>
> I got rid of it (emerge --unmerge, hehe). Some red text warning me of removing system software, but whatever. Subsequent world updates and depcleans show no changes except getting rid of sysvinit.

Off with its head.
0 new messages