From 319690c084b7cea395085ed43b06096864dcfd1f Mon Sep 17 00:00:00 2001 From: Don Penney Date: Wed, 19 Aug 2020 14:32:38 -0400 Subject: [PATCH] Update initrd with IPv6 improvements Patching content from upstream dracut for IPv6 improvements: https://github.com/dracutdevs/dracut/commit/8061a432844d1f780d9b18144def0faef0145c0c https://github.com/dracutdevs/dracut/commit/031e2f7bb8aea447cd87e455b184106acb4aa435 These changes are present in the Centos8 initrd, but not Centos7. The changes include: - Addressing a race condition in the IPv6 DAD handling: https://bugzilla.redhat.com/show_bug.cgi?id=1765013 - Add a check for router advertise route (proto ra) prior to continuing with dracut init Change-Id: I9021b3c3af639caed81d085eb889ed2d1bf98380 Story: 2009009 Task: 42709 Signed-off-by: Don Penney --- build-tools/make-installer-images.sh | 39 ++++++++++++++++++++++++++++ tox.ini | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/build-tools/make-installer-images.sh b/build-tools/make-installer-images.sh index d2ac8a85..edec5494 100755 --- a/build-tools/make-installer-images.sh +++ b/build-tools/make-installer-images.sh @@ -114,6 +114,45 @@ rm -f ./usr/lib/udev/rules.d/71-biosdevname.rules ./usr/sbin/biosdevname exit EOF +echo "-->patch usr/lib/net-lib.sh with IPv6 improvements from newer dracut" +patch usr/lib/net-lib.sh < Rebuild the initrd" if [ -f $output_dir/new-initrd.img ]; then mv -f $output_dir/new-initrd.img $output_dir/initrd.img-backup-$timestamp diff --git a/tox.ini b/tox.ini index c413db46..18757c2b 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ commands = -not -name \*~ \ -not -name \*.md \ -name \*.sh \ - -print0 | xargs --no-run-if-empty -0 bashate -v -e 'E*' -i E006,E010" + -print0 | xargs --no-run-if-empty -0 bashate -v -e 'E*' -i E003,E006,E010" bash -c "find {toxinidir}/build-tools \ -not \( -type d -name .?\* -prune \) \ -type f \