Bug#916457: grub2-common: Grub refuses to re-enable IPv6 traffic
Alan Reding
gajUph4pre at yahoo.com
Fri Dec 14 17:23:35 GMT 2018
Package: grub2-common
Version: 2.02~beta3-5+deb9u1
Severity: normal
Tags: ipv6
Hi
To block IPv6 traffic, I do the following:
1. Add the following line to /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet"
2. Run update-grub
3. In /etc/hosts, add # in front of all lines that mention IPv6 hosts
3. Reboot machine
To re-enable IPv6 traffic, I do the following:
Method A
4. Add # in front of the line that contains
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet" as in below:
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet"
5. Run update-grub
6. In /etc/hosts, remove # from all lines that mention IPv6 hosts
7. Reboot machine
Result: IPv6 traffic is still blocked
Method B
8. In /etc/default/grub, I delete the line
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet"
9. Run update-grub
10. In /etc/hosts, I ensure that # does not appear in front of lines that
mention IPv6 hosts
11. Reboot machine
Result: IPv6 traffic is still blocked
Method C
12. In /etc/default/grub, I change the value of ipv6.disable=0 as in:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=0 quiet"
13. Run update-grub
14. In /etc/hosts, I ensure that # does not appear in front of lines that
mention IPv6 hosts
15. Reboot machine
Result: IPv6 traffic is NOT blocked. IPv6 traffic is re-enabled
NOTE: The above bug is present in both of my hard disk drives. One has Debian
9.6 installed inside an LVM volume. The other hard disk drive has Debian 9.6
installed in a non-encrypted volume (ie. normal, standard volume)
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/residence--vg-root / ext4 rw,relatime,errors=remount-ro 0 0
/dev/mapper/residence--vg-var /var ext4 rw,relatime 0 0
/dev/mapper/residence--vg-home /home ext4 rw,relatime 0 0
/dev/mapper/residence--vg-tmp /tmp ext4 rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
font="/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
insmod png
if background_image /grub/.background_cache.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
echo 'Loading Linux 4.18.0-0.bpo.1-amd64 ...'
linux /vmlinuz-4.18.0-0.bpo.1-amd64 root=/dev/mapper/residence--vg-root ro ipv6.disable=0 quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.18.0-0.bpo.1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
menuentry 'Debian GNU/Linux, with Linux 4.18.0-0.bpo.1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-0.bpo.1-amd64-advanced-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
echo 'Loading Linux 4.18.0-0.bpo.1-amd64 ...'
linux /vmlinuz-4.18.0-0.bpo.1-amd64 root=/dev/mapper/residence--vg-root ro ipv6.disable=0 quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.18.0-0.bpo.1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.18.0-0.bpo.1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-0.bpo.1-amd64-recovery-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
echo 'Loading Linux 4.18.0-0.bpo.1-amd64 ...'
linux /vmlinuz-4.18.0-0.bpo.1-amd64 root=/dev/mapper/residence--vg-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.18.0-0.bpo.1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.17.0-0.bpo.3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.17.0-0.bpo.3-amd64-advanced-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
echo 'Loading Linux 4.17.0-0.bpo.3-amd64 ...'
linux /vmlinuz-4.17.0-0.bpo.3-amd64 root=/dev/mapper/residence--vg-root ro ipv6.disable=0 quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.17.0-0.bpo.3-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.17.0-0.bpo.3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.17.0-0.bpo.3-amd64-recovery-674af3db-d1e2-46b1-8127-0e04ffd3b0b4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9d263cfe-52f5-40e7-a534-0dc8d17b9403
else
search --no-floppy --fs-uuid --set=root 9d263cfe-52f5-40e7-a534-0dc8d17b9403
fi
echo 'Loading Linux 4.17.0-0.bpo.3-amd64 ...'
linux /vmlinuz-4.17.0-0.bpo.3-amd64 root=/dev/mapper/residence--vg-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.17.0-0.bpo.3-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Dec 14 16:48 ata-HL-DT-ST_DVD+_-RW_GU90N_KZWI56J2025 -> ../../sr0
lrwxrwxrwx 1 root root 9 Dec 14 16:48 ata-TOSHIBA_Q300_Pro_X5LS1064TB7W -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 14 16:48 ata-TOSHIBA_Q300_Pro_X5LS1064TB7W-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 ata-TOSHIBA_Q300_Pro_X5LS1064TB7W-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 14 16:48 ata-TOSHIBA_Q300_Pro_X5LS1064TB7W-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-residence--vg-home -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-residence--vg-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-residence--vg-swap_1 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-residence--vg-tmp -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-residence--vg-var -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-name-sda5_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-CRYPT-LUKS1-4d0b7b6fa47648e2bfa6a6780df72600-sda5_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-LVM-1qBncBGs8G4eIHZClf7RZ1K16Bl2fCJYBWGilAzNR52H5djxb15fuRsCmQRgJuEg -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-LVM-1qBncBGs8G4eIHZClf7RZ1K16Bl2fCJYORYWTdhacCGHXsffKfDMRql1LO6Gn3ec -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-LVM-1qBncBGs8G4eIHZClf7RZ1K16Bl2fCJYU116OY9Vt03k8WXC96AhDBfoVQtC76iO -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-LVM-1qBncBGs8G4eIHZClf7RZ1K16Bl2fCJYchKvrcZrzspqx8oTzJm8eC1XUfEJWuMW -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 14 16:48 dm-uuid-LVM-1qBncBGs8G4eIHZClf7RZ1K16Bl2fCJYxWW8IuFUryXWslDdZlyo3Oea342gDdQ8 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 lvm-pv-uuid-KK0Bee-tfqM-RbbK-mF5W-0Ne8-9jQv-Qp407l -> ../../dm-0
lrwxrwxrwx 1 root root 9 Dec 14 16:48 wwn-0x500080d9104d43d4 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 14 16:48 wwn-0x500080d9104d43d4-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 wwn-0x500080d9104d43d4-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 14 16:48 wwn-0x500080d9104d43d4-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 Dec 14 16:48 wwn-0x5001480000000000 -> ../../sr0
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 14 16:48 0335754d-821b-43a8-a199-588d3bb6ec6c -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 14 16:48 2fd8c489-8c48-4f61-8ad6-41c539f7679e -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 14 16:48 4d0b7b6f-a476-48e2-bfa6-a6780df72600 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 14 16:48 674af3db-d1e2-46b1-8127-0e04ffd3b0b4 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 9d263cfe-52f5-40e7-a534-0dc8d17b9403 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 14 16:48 a9b03e56-af62-47c1-8c5f-dd3b5f77c775 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 14 16:48 c71272a7-d7de-4212-93ce-88323600ea53 -> ../../dm-3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 9.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub2-common depends on:
ii dpkg 1.18.25
ii grub-common 2.02~beta3-5+deb9u1
ii libc6 2.24-11+deb9u3
ii libdevmapper1.02.1 2:1.02.137-2
ii liblzma5 5.2.2-1.2+b1
grub2-common recommends no packages.
grub2-common suggests no packages.
-- debconf-show failed
More information about the Pkg-grub-devel
mailing list