The officially official Devuan Forum!

You are not logged in.

#1 2023-12-24 12:17:12

Ron
Member
Registered: 2018-04-22
Posts: 479  

[Found another way] Disable ipv6 using Grub - new wrinkle

One of the first things I do on a fresh install is to disable ipv6 using Grub by doing this:

Open /etc/default/grub as administrator. Find the line:
GRUB_CMDLINE_LINUX=""
and change it to:
GRUB_CMDLINE_LINUX="ipv6.disable=1"
Then in terminal run:
sudo update-grub

But when I go there I see this, something I've never seen before:

GRUB_CMDLINE_LINUX="initrd=/install/gtk/initrd.gz"

What does this do? I've searched it, but what I've read seems to be above my pay grade. And how can I add "ipv6.disable=1"? Should I overwrite "initrd=/install/gtk/initrd.gz" or just add "ipv6.disable=1" after/before it?

Last edited by Ron (2023-12-25 00:42:34)

Offline

#2 2023-12-24 17:17:56

chris2be8
Member
Registered: 2018-08-11
Posts: 266  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

Is there a /install/gtk/initrd.gz in your / or /boot ? If there's a /initrd.img on your system is it a symlink to somewhere?

I'm not an expert, but I know that the system loads an initrd.img early in boot processing (possibly compressed). So I'd expect that entry to point to the one the system should use. So removing that entry might stop your system booting.

Does your /etc/default/grub say anything like:

# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

If so try that.

Offline

#3 2023-12-24 18:02:47

Ron
Member
Registered: 2018-04-22
Posts: 479  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

Here's what I see in / and /boot. What do I do with info -f grub -n 'Simple configuration'? I tried that in the terminal and nothing happened (sorry for my ignorance).

a.jpg

b.jpg

Offline

#4 2023-12-24 22:32:57

Ron
Member
Registered: 2018-04-22
Posts: 479  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

I'm beginning to wonder if it's even worth it to disable it. What could (theoretically) happen leaving it enabled?

Offline

#5 2023-12-24 22:52:26

quickfur
Member
Registered: 2023-12-14
Posts: 202  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

What's the reason you want to disable ipv6?

Offline

#6 2023-12-24 23:26:25

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 590  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

I disable ipv6 the same way for my vpn.

But I don't have that other reference to an image.

you could comment (#) the reference and put the ipv6 command before the initrd...

initrd is supposed to speed up the loading of the kernel, and it does a little bit.

If it breaks you system-boot, then re-edit and try again.

All the best.

Last edited by GlennW (2023-12-24 23:27:07)


pic from 1993, new guitar day.

Offline

#7 2023-12-25 00:41:49

Ron
Member
Registered: 2018-04-22
Posts: 479  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

I disabled it by running these 2 commands in the terminal:

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

That's easier than messing with grub. (FTR, I found this here.)

Last edited by Ron (2023-12-25 00:43:57)

Offline

#8 2023-12-25 08:52:08

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 73  

Re: [Found another way] Disable ipv6 using Grub - new wrinkle

i like to see my grub menu when booting and so i have it visible and with a short delay before automatically booting

on some systems you use "tab" and others "e"(for-edit) to view and/or change/edit your current grub settings(non-persistent)

on a fresh install, sometimes there is no /etc/default/grub so it is necessary to copy the one stored at /usr/share/grub/default/ and then to edit it as necessary(don't forget to save your changes and to do a "sudo update-grub" for persistence)

my usual grub edits are to remove "quiet" and to add "ipv6.disable=1"

also, to reference the

GRUB_CMDLINE_LINUX="initrd=/install/gtk/initrd.gz"

a DDG search had this as one result:
ttps://lists.debian.org/debian-user/2015/10/msg00161.html
(and our thread was the next result right below it...lol!)
ttps://dev1galaxy.org/viewtopic.php?id=6281


Be Excellent to each other and Party On!
ttps://www.youtube.com/watch?v=rph_1DODXDU
ttps://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you

Offline

Board footer