Re: Bug#402450: #402450: a patch for this bug (pppoe not up after restart) and the depends issue
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eddy Petrișor wrote:
> tag 402450 patch
> thanks
>
> Hello,
>
> Attached is a patch (against ppp 2.4.4rel-4) that takes care to add the correct snippets in the
> target's /etc/network/interfaces so that the loopback and the pppoe connection is brought up after
> restart.
>
> The hostname issue is not tackled with yet since ppp-udeb's functionality should be merged into (or
> called from) netcfg somehow and I didn't had the time to investigate that yet.
>
> Please include this in the next release of ppp.
I'm so good at forget this kind of stuff...
- --
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFirFoY8Chqv3NRNoRAhtLAJ91MLNrHEpPbDtula9YqoilH2SVgQCgx8iv
VWJQAe+hhGChmwNYS3qHlyQ=
=/uZi
-----END PGP SIGNATURE-----
diff -rN -u old-ppp-eddyp-dev/ppp-2.4.4rel/debian/changelog new-ppp-eddyp-dev/ppp-2.4.4rel/debian/changelog
--- old-ppp-eddyp-dev/ppp-2.4.4rel/debian/changelog 2006-12-21 15:35:45.000000000 +0200
+++ new-ppp-eddyp-dev/ppp-2.4.4rel/debian/changelog 2006-12-21 15:35:46.000000000 +0200
@@ -1,3 +1,16 @@
+ppp (2.4.4rel-5~) unstable; urgency=low
+
+ [ Eddy PetriÈ?or ]
+ * added ${misc:Depends} to ppp-udeb
+ * removed debconf as a dependency of ppp-udeb since such a package does not
+ exist in d-i environment
+ * ppp-udeb: the interface is now raised in the installed system
+ (Closes: #402450)
+ * ppp-udeb: loopback interface snippet is added too, to make sure we have it
+ in the installed system
+
+ -- Eddy PetriÈ?or <eddy.petrisor@gmail.com> Thu, 21 Dec 2006 00:51:00 +0200
+
ppp (2.4.4rel-4) unstable; urgency=low
[ Eddy PetriÈ?or ]
diff -rN -u old-ppp-eddyp-dev/ppp-2.4.4rel/debian/control new-ppp-eddyp-dev/ppp-2.4.4rel/debian/control
--- old-ppp-eddyp-dev/ppp-2.4.4rel/debian/control 2006-12-21 15:35:45.000000000 +0200
+++ new-ppp-eddyp-dev/ppp-2.4.4rel/debian/control 2006-12-21 15:35:46.000000000 +0200
@@ -23,7 +23,7 @@
XC-Package-Type: udeb
Section: debian-installer
Architecture: any
-Depends: ${shlibs:Depends}, ethernet-card-detection, ppp-modules, di-utils, debconf
+Depends: ${shlibs:Depends}, ${misc:Depends}, ethernet-card-detection, ppp-modules, di-utils
Provides: configured-network
XB-Installer-Menu-Item: 17
Description: Point-to-Point Protocol (PPP) daemon
diff -rN -u old-ppp-eddyp-dev/ppp-2.4.4rel/debian/ppp-udeb.postinst new-ppp-eddyp-dev/ppp-2.4.4rel/debian/ppp-udeb.postinst
--- old-ppp-eddyp-dev/ppp-2.4.4rel/debian/ppp-udeb.postinst 2006-12-21 15:35:45.000000000 +0200
+++ new-ppp-eddyp-dev/ppp-2.4.4rel/debian/ppp-udeb.postinst 2006-12-21 15:35:46.000000000 +0200
@@ -211,6 +211,9 @@
log-output apt-install ppp || true
+echo "ETH=$IFACE" > /usr/lib/finish-install.d/50pppoe-iface
+chmod +x /usr/lib/finish-install.d/50pppoe-iface
+
#DEBHELPER#
exit 0
diff -rN -u old-ppp-eddyp-dev/ppp-2.4.4rel/extra/50config-target-ppp new-ppp-eddyp-dev/ppp-2.4.4rel/extra/50config-target-ppp
--- old-ppp-eddyp-dev/ppp-2.4.4rel/extra/50config-target-ppp 2006-12-21 15:35:45.000000000 +0200
+++ new-ppp-eddyp-dev/ppp-2.4.4rel/extra/50config-target-ppp 2006-12-21 15:35:46.000000000 +0200
@@ -4,3 +4,22 @@
mkdir -p /target/etc/ppp
cp /etc/ppp/*-secrets /target/etc/ppp/
cp -a /etc/ppp/peers /target/etc/ppp/
+
+. /usr/lib/finish-install.d/50pppoe-iface
+mkdir -p /target/etc/network/
+# FIXME: lo snippet should not be ppp-udeb's job
+cat >> /target/etc/network/interfaces <<EOPPP
+
+# PPPoE configuration
+# added by Debian Installer
+auto lo
+iface lo inet loopback
+
+auto provider
+iface provider inet ppp
+ pre-up /sbin/ifconfig $ETH up
+ provider provider
+# end of PPPoE configuration
+
+EOPPP
+
Reply to: