[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1039019: bookworm-pu: package fai/6.0.3+deb12u1



Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: fai@packages.debian.org
Control: affects -1 + src:fai


This upload fixes #1037329


[ Reason ]
A change from FAI 5.10.3 (in bullseye) to 6.0 (currently 6.0.3 in bookworm)
removed some code which sets the lifetime for IP addresses to forever. This change must be reversed.

[ Impact ]
A network installation hangs completly after the lease time of the IP address expires.
FAI does not run a dhclient, because it uses a nfsroot.

[ Tests ]
Since we used this code years before, and I only reverted the commit which removes the code, no tests are needed.

[ Risks ]
No risks,.

[ Checklist ]
  [X ] *all* changes are documented in the d/changelog
  [X ] I reviewed all changes and I approve them
  [X ] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
For each network interface, set IP address filetime to forever.


 bin/fai          |    6 ++++++
 debian/changelog |    6 ++++++
 2 files changed, 12 insertions(+)

diff -Nru fai-6.0.3/bin/fai fai-6.0.3+deb12u1/bin/fai
--- fai-6.0.3/bin/fai	2023-01-12 10:22:03.000000000 +0100
+++ fai-6.0.3+deb12u1/bin/fai	2023-06-24 12:57:09.000000000 +0200
@@ -126,6 +126,12 @@
 
         cat /proc/kmsg >/dev/tty4 &
 
+        # fix IP address lifetime
+	ip -4 -br a | awk '/UP / {if ($3) print $3 " " $1}' | \
+        while read addr iface; do
+            ip -4 addr change "$addr" dev "$iface" valid_lft forever preferred_lft forever
+        done
+
         # enable EFI variables
         if [ -d /sys/firmware/efi ]; then
            mount -t efivarfs none /sys/firmware/efi/efivars
diff -Nru fai-6.0.3/debian/changelog fai-6.0.3+deb12u1/debian/changelog
--- fai-6.0.3/debian/changelog	2023-05-24 11:57:11.000000000 +0200
+++ fai-6.0.3+deb12u1/debian/changelog	2023-06-24 13:02:26.000000000 +0200
@@ -1,3 +1,9 @@
+fai (6.0.3+deb12u1) bookworm; urgency=low
+
+  * fai: set IP address lifetime to forever, Closes: #1037329
+
+ -- Thomas Lange <lange@debian.org>  Sat, 24 Jun 2023 13:02:26 +0200
+
 fai (6.0.3) unstable; urgency=high
 
   *  get-boot-info: write $SERVER only if string is non-epmty


Reply to: