[debian-edu-commits] [Git][debian-edu/debian-edu-config][buster] Fix loss of dynamically allocated v4 IP address. (Closes: #966129)
Wolfgang Schweer
gitlab at salsa.debian.org
Thu Jul 23 14:26:36 BST 2020
Wolfgang Schweer pushed to branch buster at Debian Edu / debian-edu-config
Commits:
c1559e50 by Wolfgang Schweer at 2020-07-23T15:25:42+02:00
Fix loss of dynamically allocated v4 IP address. (Closes: #966129)
Drop etc/network/if-up.d/wpad-proxy-update. This script fails to work due
to changed behaviour of the ifupdown/dhclient/systemd combination and now
also causes the loss of a dynamically allocated ipv4 IP address about 30
minutes after booting.
Add code to d/debian-edu-config.postinstall to implement the intended
proxy setting update after a WPAD change just after rebooting the system.
(It would otherwise happen at first DHCP lease renewal ~15 minutes later.)
Adjust Makefile and debian/dirs.
Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>
- - - - -
4 changed files:
- Makefile
- debian/changelog
- debian/debian-edu-config.postinst
- debian/dirs
Changes:
=====================================
Makefile
=====================================
@@ -102,7 +102,6 @@ SYSCONFFILES = \
ldap/rootDSE-debian-edu.ldif \
ldap/slapd-debian-edu.conf \
ltsp/ltsp-build-client.conf \
- network/if-up.d/wpad-proxy-update \
samba/netlogon/1stlogon/1stlogon.bat \
samba/netlogon/config/get_time.bat \
samba/netlogon/config/penguin.bat \
=====================================
debian/changelog
=====================================
@@ -1,3 +1,17 @@
+debian-edu-config (2.10.65+deb10u6) UNRELEASED; urgency=medium
+
+ * Fix loss of dynamically allocated v4 IP address. (Closes: #966129)
+ - Drop etc/network/if-up.d/wpad-proxy-update. This script fails to work due
+ to changed behaviour of the ifupdown/dhclient/systemd combination and now
+ also causes the loss of a dynamically allocated ipv4 IP address about 30
+ minutes after booting.
+ - Add code to d/debian-edu-config.postinstall to implement the intended
+ proxy setting update after a WPAD change just after rebooting the system.
+ (It would otherwise happen at first DHCP lease renewal ~15 minutes later.)
+ - Adjust Makefile and debian/dirs.
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Thu, 23 Jul 2020 13:55:15 +0200
+
debian-edu-config (2.10.65+deb10u5) buster; urgency=medium
[ Wolfgang Schweer ]
=====================================
debian/debian-edu-config.postinst
=====================================
@@ -224,20 +224,22 @@ configure)
chmod 600 /etc/sssd/sssd-debian-edu.conf
chown root:root /etc/sssd/sssd-debian-edu.conf
- # The scripts in /etc/network/if-up.d need to be executable.
- # Drop wpad-proxy-update for the main server, it makes no sense to run the
- # script at this time. Also drop it for the gateway, it doesn't make sense.
- if egrep -q "(Main-Server)" /etc/debian-edu/config || grep -q gateway /etc/hostname; then
- rm -f /etc/network/if-up.d/wpad-proxy-update
- else
- chmod +x /etc/network/if-up.d/wpad-proxy-update
- fi
+ # Add post-up stanza to interfaces file to let proxy changes take effect
+ # immediately after reboot (would take up to 15 min. otherwise). Exclude the
+ # gateway; the script doesn't make sense and would taint network setup.
+ rm -f /etc/network/if-up.d/wpad-proxy-update
+ if [ -f /etc/network/interfaces ] && ! grep -q gateway /etc/hostname && \
+ ! grep -q update-proxy /etc/network/interfaces ; then
+ sed -i '/iface eth0 inet dhcp/a \ post-up \/usr\/share\/debian-edu-config\/tools\/update-proxy-from-wpad' \
+ /etc/network/interfaces
+ fi
# Add post-up stanza to interfaces file to let hostname changes take effect
# immediately after reboot (would take up to 15 min. otherwise). Exclude the
# gateway; the script doesn't make sense and would taint network setup.
+ rm -f /etc/network/if-up.d/hostname
if [ -f /etc/network/interfaces ] && ! grep -q gateway /etc/hostname && \
- ! grep -q post-up /etc/network/interfaces ; then
+ ! grep -q update-hostname /etc/network/interfaces ; then
sed -i '/iface eth0 inet dhcp/a \ post-up \/usr\/sbin\/update-hostname-from-ip' \
/etc/network/interfaces
fi
=====================================
debian/dirs
=====================================
@@ -14,7 +14,6 @@ etc/init.d
etc/ldap/schema
etc/ldap/ssl
etc/ltsp
-etc/network/if-up.d/
etc/pam.d
etc/slbackup/pre.d
etc/samba
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/c1559e509c8d1723567a1b47e39869017ea7a637
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/c1559e509c8d1723567a1b47e39869017ea7a637
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20200723/4b76752b/attachment-0001.html>
More information about the debian-edu-commits
mailing list