Control: tags -1 + patch Control: affects -1 + network-manager-fortisslvpn
El lun., 8 jun. 2020 a las 15:43, Agustin Martin (<agmar...@debian.org>) escribió: > pppd[56889]: Couldn't open the /dev/ppp device: No such file or directory > > This causes the VPN initialization to fail. > > The reason for this is that ppp_generic mode is not loaded. Seems that > there are some reasons why this is not done by udev (See #263079 for > old standalone udev package). Please find attached the patch I am using to deal with this. Regards, -- Agustin
From 822670b95c35b61f66ee36a845f77b711832bd27 Mon Sep 17 00:00:00 2001 From: Agustin Martin Domingo <agmar...@debian.org> Date: Mon, 8 Jun 2020 16:05:18 +0200 Subject: [PATCH] Make /dev/ppp available by installing ppp_generic module on boot or package configuration. Signed-off-by: Agustin Martin Domingo <agmar...@debian.org> --- debian/ppp-modules.conf | 3 +++ debian/ppp.install | 1 + debian/ppp.postinst | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 debian/ppp-modules.conf diff --git a/debian/ppp-modules.conf b/debian/ppp-modules.conf new file mode 100644 index 0000000..96de26a --- /dev/null +++ b/debian/ppp-modules.conf @@ -0,0 +1,3 @@ +# At least needed to have /dev/ppp available. udev seems not to create it. +# This is not straighforward, see #263079 for old standalone udev package +ppp_generic diff --git a/debian/ppp.install b/debian/ppp.install index 63668e9..737e6c8 100644 --- a/debian/ppp.install +++ b/debian/ppp.install @@ -18,3 +18,4 @@ debian/extra/provider.peer usr/share/ppp/ debian/tmp-ppp/usr/lib/pppd/* usr/lib/pppd/ debian/tmp-ppp/usr/sbin/* usr/sbin/ debian/tmp-ppp/usr/share/man/* usr/share/man/ +debian/ppp-modules.conf etc/modules-load.d/ diff --git a/debian/ppp.postinst b/debian/ppp.postinst index 357364a..5f42cff 100644 --- a/debian/ppp.postinst +++ b/debian/ppp.postinst @@ -37,6 +37,13 @@ for file in $LOG_FILES; do chmod 640 $file done +# Make sure /dev/ppp is available by installing ppp_generic module +if ! ischroot 2>/dev/null; then + modprobe -q ppp_generic || true +else + echo "chroot environment detected - not running 'modprobe ppp_generic'" +fi + } case "$1" in @@ -56,4 +63,3 @@ esac #DEBHELPER# exit 0 - -- 2.27.0