Files
integ/ldap/nss-pam-ldapd/debian/deb_patches/0001-Ignore-lo-interfaces-for-nslcd-script.patch
Fabiano Mercer 84017b4290 Ignore --all/lo* for ifupdown/nslcd scripts
It was detected the networking.service is marked as failing after reboot.
It happpens because "ifup -a" is executed by the service.
It starts to run the scripts in /etc/network/interfaces.d/.
But several scripts in ifupdown-extra are not prepared to handle "-all".

In the case of nss-pam-ldapd the script /etc/network/if-up.d/nslcd
is failing when there are loopback interfaces with label (lo:X) as the
script only tests the interface "lo".

Test Plan (Debian only - AIO-SX and AIO-DX)):
PASS  Check systemctl status networking.service after unlock

Closes-Bug: #1983503

Change-Id: I1fd9e2ea75233d987d6f1f2aa5a3395ab2885e2b
Signed-off-by: Fabiano Mercer <fabiano.correamercer@windriver.com>
2022-08-12 13:07:02 -03:00

26 lines
705 B
Diff

From 8c348fc679099f928002d185aaabe0b2d5142cc3 Mon Sep 17 00:00:00 2001
From: Fabiano Mercer <fabiano.correamercer@windriver.com>
Date: Wed, 3 Aug 2022 14:53:38 -0300
Subject: [PATCH] Ignore lo interfaces for nslcd script
---
debian/nslcd.if-up | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/nslcd.if-up b/debian/nslcd.if-up
index 11befba..fb9aaff 100644
--- a/debian/nslcd.if-up
+++ b/debian/nslcd.if-up
@@ -27,7 +27,7 @@ NSLCD_STATEDIR=/var/run/nslcd
NSLCD_PIDFILE=$NSLCD_STATEDIR/nslcd.pid
# ignore lo interface
-[ "$IFACE" = "lo" ] && exit 0
+[[ "$IFACE" = lo* ]] && exit 0
# only do things when starting the interface
[ "$MODE" != "start" ] && exit 0
--
2.17.1