Disable ipv6 at kernel boot time
oginstaller/pipeline/head This commit looks good Details

move-to-docker
Nicolas Arenas 2024-11-06 06:50:46 +01:00
parent a1052de439
commit 31558b3698
2 changed files with 3 additions and 9 deletions

View File

@ -27,6 +27,7 @@ then
debootstrap --arch=amd64 --variant=$VARIANT $DIST $CHROOT_DIR $DEBOOT_STRAP_URL
fi
mkdir -p $CHROOT_DIR/usr/share/calamares/branding/
mkdir -p $CHROOT_DIR/etc/calamares/modules/
cp calamares/settings.conf $CHROOT_DIR/etc/calamares/
@ -42,13 +43,6 @@ mkdir -p $CHROOT_DIR/usr/local/bin
cp openGnsys-installer.sh $CHROOT_DIR/usr/local/bin/
chmod +x $CHROOT_DIR/usr/local/bin/openGnsys-installer.sh
# Disable ipv6 stack
echo "net.ipv6.conf.all.disable_ipv6 = 1" > $CHROOT_DIR/etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> $CHROOT_DIR/etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> $CHROOT_DIR/etc/sysctl.conf
chroot $CHROOT_DIR sysctl -p
# # Create mount points
mount --bind /dev/ $CHROOT_DIR/dev

View File

@ -84,8 +84,8 @@ insmod all_video
set default="0"
set timeout=30
menuentry "Install Ubuntu FS" {
linux /casper/vmlinuz boot=casper quiet splash ---
menuentry "Install Opengnsys" {
linux /casper/vmlinuz boot=casper ipv6.disable=1 quiet splash ---
initrd /casper/initrd
}