Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why I can't I build systemd without ipv6?
Date: Fri, 13 Oct 2017 19:32:53
Message-Id: dca13e53-1dec-f5f8-a26c-62b66b0fecf6@gmail.com
In Reply to: Re: [gentoo-user] Why I can't I build systemd without ipv6? by Mike Gilbert
1 On 10/13/2017 11:34 AM, Mike Gilbert wrote:
2 > On Fri, Oct 13, 2017 at 1:29 PM, Daniel Frey <djqfrey@×××××.com> wrote:
3 >> I switched ISPs a couple months back and have been struggling with
4 >> networking issues (not LAN, just WAN.)
5 >>
6 >> I have discovered that something is broken with my ISP's ipv6 support, every
7 >> time I go to a website there's a 10-second delay. When syncing portage today
8 >> I saw what the delay is: apparently it tries ipv6 twice, fails, then resorts
9 >> to ipv4 which works fine.
10 >>
11 >> Most of my systems now have ipv6 support removed, and viola! no more delays.
12 >>
13 >> Except for the three systems I have that run systemd. I went in the kernel
14 >> config to disable ipv6, and it won't let me - looking at the dependency
15 >> list, it's systemd blocking this.
16 >>
17 >> So *why* on earth is it a dependency when (from what I've been reading after
18 >> discovering this) many ISPs don't seem to support it properly yet?
19 >>
20 >> And is there a way to build systemd without ipv6? Or am I going to have to
21 >> revert these three systems back to openrc?
22 >
23 > Instead of stripping IPv6 out of your kernel, I would suggest that you
24 > simply disable it on any network interfaces. How you do this would
25 > depend on the method you use to manager your network config.
26
27 I have tried this, I set a static ipv4 IP on one machine and set it to
28 not configure ipv6 at all. I still have a delay on this machine, but now
29 it's not obvious what they delay is.
30
31 >
32 > If you really want to remove IPv6 from your kernel, simply disable the
33 > GENTOO_LINUX_INIT_SYSTEMD config option, and enable the other other
34 > dependencies manually.
35 >
36 > https://gitweb.gentoo.org/proj/linux-patches.git/tree/4567_distro-Gentoo-Kconfig.patch#n106
37 >
38
39 I am going to try what Canek suggested and disable it on the kernel
40 command line, but as the machine are currently updating I'll wait until
41 they're done, then I'll try it. If it doesn't work then I'll set it up
42 manually.
43
44 Dan