Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh install, netifrc, systemd, sysvinit and openrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 181
Location: Tsuruga, Japan

PostPosted: Mon Feb 19, 2018 8:05 am    Post subject: Fresh install, netifrc, systemd, sysvinit and openrc Reply with quote

I am doing a fresh install of Gentoo. This is what I've done:

- booted the laptop from SystemRescueCD
- chrooted into the Gentoo environment
- follow the steps of the handbook

At some point in the handbook, one needs to install netifrc:

Code:
(chroot) sysresccd / # emerge --ask --noreplace net-misc/netifrc


However, this is the result:

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] virtual/tmpfiles-0
[ebuild  N     ] sys-apps/sysvinit-2.88-r9  USE="(-ibm) (-selinux) -static"
[ebuild  N     ] sys-apps/openrc-0.34.11  USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs"
[ebuild  N     ] net-misc/netifrc-0.5.1
[blocks B      ] sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd-236-r5)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/sysvinit-2.88-r9:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-apps/sysvinit-2.86-r6[selinux?] (>=sys-apps/sysvinit-2.86-r6) required by (sys-apps/openrc-0.34.11:0/0::gentoo, ebuild scheduled for merge)

  (sys-apps/systemd-236-r5:0/2::gentoo, installed) pulled in by
    sys-apps/systemd required by (virtual/tmpfiles-0:0/0::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


Hey, that's weird. This is a Stage3 tarball and the Gentoo Handbook claims that the "base system" uses openrc, not systemd. But this indicates that systemd is installed, and openrc is going to be added. It's weird, I've only downloaded a Stage3 tarball. I checked recent news items but nothing about a switch from openrc -> systemd?

What would be the easiest course of action. I would like to try and use openrc, although I am not religious in that sense and systemd is also acceptable.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5862

PostPosted: Mon Feb 19, 2018 8:25 am    Post subject: Reply with quote

out of curiosity, did you use the systemd stage3 tarball instead of the standard one?
Back to top
View user's profile Send private message
AndyMender
n00b
n00b


Joined: 19 Feb 2018
Posts: 3

PostPosted: Mon Feb 19, 2018 9:32 am    Post subject: Re: Fresh install, netifrc, systemd, sysvinit and openrc Reply with quote

WvR wrote:


Hey, that's weird. This is a Stage3 tarball and the Gentoo Handbook claims that the "base system" uses openrc, not systemd. But this indicates that systemd is installed, and openrc is going to be added. It's weird, I've only downloaded a Stage3 tarball. I checked recent news items but nothing about a switch from openrc -> systemd?

What would be the easiest course of action. I would like to try and use openrc, although I am not religious in that sense and systemd is also acceptable.


It seems to me you downloaded the systemd stage3 tarball. For OpenRC tarballs:
amd64 - http://distfiles.gentoo.org/releases/amd64/autobuilds/20180206T214502Z/stage3-amd64-20180206T214502Z.tar.xz
i686 - http://distfiles.gentoo.org/releases/x86/autobuilds/20180207T214502Z/stage3-i686-20180207T214502Z.tar.xz

Also, you don't actually need netifrc. This is for the legacy net.* scripts. You might prefer a DHCP client like net-misc/dhcpcd or net-misc/networkmanager.
_________________
Geek on!
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 181
Location: Tsuruga, Japan

PostPosted: Mon Feb 19, 2018 11:46 am    Post subject: Reply with quote

A, now that you mention it, I may have downloaded a systemd tarball. A, stupid me. Sorry. Don't mention it.

I use Gentoo on all my computers, and I use Gnome. This time I was expecting to do the same thing but I decided halfway through that I'd try Lumina desktop instead, and then I thought I might as well get rid off systemd as well.

Thanks.
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 181
Location: Tsuruga, Japan

PostPosted: Sat Feb 24, 2018 9:56 am    Post subject: Reply with quote

Bump.

I am still having a problem with netifrc. This is the situation:

- fresh install on an old laptop (Lenovo X201i, perhaps 6 or 7 years old)
- systemd
- installation successful, kernel compilation successful, X, Lumina desktop, SDDM all successful

However, I keep having one annoying problem, which is that the network card does not restart automatically from suspend. So I type

Code:
systemctl restart dhcpcd


On my other Gentoo machines, I have systemd NetworkManager, which is, apparently, installed with netifrc. Thus I tried to install netifrc, but I still get this annoying Block:

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] virtual/tmpfiles-0
[ebuild  N     ] sys-apps/sysvinit-2.88-r9  USE="(-ibm) (-selinux) -static"
[ebuild  N     ] sys-apps/openrc-0.34.11  USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs"
[ebuild  N     ] net-misc/netifrc-0.5.1
[blocks B      ] sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd-236-r5)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/sysvinit-2.88-r9:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-apps/sysvinit-2.86-r6[selinux?] (>=sys-apps/sysvinit-2.86-r6) required by (sys-apps/openrc-0.34.11:0/0::gentoo, ebuild scheduled for merge)

  (sys-apps/systemd-236-r5:0/2::gentoo, installed) pulled in by
    sys-apps/systemd required by (virtual/tmpfiles-0:0/0::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


OK, something to do with netifrc, sysvinit, and openrc. The Gentoo Wiki page about netifrc does not provide much insight, so what am I supposed to do here? From the USE-flags it appears that there is not a simple solution by setting or unsetting some specific USE-flags.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22058
Location: here

PostPosted: Sat Feb 24, 2018 1:41 pm    Post subject: Reply with quote

WvR wrote:
However, I keep having one annoying problem, which is that the network card does not restart automatically from suspend. So I type

You can create a script in /etc/pm/sleep.d/ to run command when resume
/etc/pm/sleep.d/00_resume_dhcp:
#!/bin/sh
case "$1" in
resume|thaw)
 systemctl restart dhcpcd
;;
esac
exit 0

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 181
Location: Tsuruga, Japan

PostPosted: Sun Feb 25, 2018 12:55 am    Post subject: Reply with quote

Well, yes, I __could__ do that (and perhaps I will). However....... the Gentoo Handbook instructs to install netifrc as part of the fresh installation; the Gentoo Stage3 archives include systemd as an option; the Gentoo Handbook mentions that systemd is a valid option for installation. Thus..... the installation of netifrc __should__ work with systemd, and if it does not, then the Gentoo Handbook must be changed to reflect the fact that installation with a systemd profile makes it impossible to use netifrc. I guess I should contact the maintainers of the Handbook.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22058
Location: here

PostPosted: Sun Feb 25, 2018 8:41 am    Post subject: Reply with quote

I never installed gentoo with systemd, but look these thread
https://forums.gentoo.org/viewtopic-t-1073314-start-0.html
https://forums.gentoo.org/viewtopic-p-8159300.html#8159300
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 181
Location: Tsuruga, Japan

PostPosted: Sun Feb 25, 2018 9:09 am    Post subject: Reply with quote

OK, problem solved - it seems I was confused.

The Gentoo Wiki about systemd mentions netifrc, and then mentions the NetworkManager.service for systemd. My systemd does not have NetworkManager.service, therefore I was under the impression that I needed to have netifrc for this service to work. After some reading, it seems that it is not netifrc, but networkmanager (without the capital N and M) is the package I need.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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