Skip to content

Commit

Permalink
set IP address lifetime to forever, Closes: #1037329
Browse files Browse the repository at this point in the history
This reverts commit aa42936.
  • Loading branch information
Mrfai committed Jun 22, 2023
1 parent a53aca5 commit 1025a1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/fai
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ fai_init() {

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
Expand Down

0 comments on commit 1025a1e

Please sign in to comment.