mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/2] ifupdown: Remove not used hook folders again
@ 2024-04-03 10:08 Alexander Dahl
  2024-04-03 10:08 ` [ptxdist] [PATCH 1/2] Revert "initmethod-bbinit: add more empty folders for ifupdown" Alexander Dahl
  2024-04-03 10:08 ` [ptxdist] [PATCH 2/2] Revert "initmethod-systemd: " Alexander Dahl
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Dahl @ 2024-04-03 10:08 UTC (permalink / raw)
  To: ptxdist

After putting a script in /etc/network/if-post-up.d and wondering why it
was not executed I found myself in a strange rabbit hole.

busybox added support for the folders post-up and pre-down with 1.20.0
and according to the two patches reverted now, complained when those
where missing.  So after upgrading to busybox 1.20.1 for
ptxdist-2012.07.0 those folders where created from ptxdist-2012.08.0
onwards.

That busybox feature seemed to be incompatible with how Debian ifupdown
(the original one) handles things, which considers those folders as
aliases only.  The claim "Treat post-up and pre-down as aliases for up
and down." is probably only related to things you can set in file
/etc/network/interfaces per interface, so post-up and pre-down probably
work from interfaces but not from hook folders.  The Debian manpage also
says this:

> Please note that as post-up and pre-down are aliases, no files in the
> corresponding directories are processed.  Please use if-up.d and
> if-down.d directories instead.

So busybox 1.21.0 removed executing scripts from post-up and pre-down
folders again, without explicitly making that clear, only stating it
would improve compatibility to Debian.  With busybox 1.21.0 those
warnings where gone again if those folders are not present, so from the
hook script point of view everything as before 1.20.0.

That update to busybox 1.21.0 came with ptxdist-2013.07.0 one year later
and from then on we had two useless folders.  Removing those now to
avoid further confusion.

Link: https://git.busybox.net/busybox/commit/?id=dd82443b921111d7f5570fddc2eaeb634f1f971d
Link: https://git.busybox.net/busybox/commit/?id=3a9365e2732f5df2cdef758bc1f6e5e9da8fbcef

Alexander Dahl (2):
  Revert "initmethod-bbinit: add more empty folders for ifupdown"
  Revert "initmethod-systemd: add more empty folders for ifupdown"

 rules/initmethod-bbinit.make  | 2 --
 rules/initmethod-systemd.make | 2 --
 2 files changed, 4 deletions(-)


base-commit: e7e42d3b81e1244a33533b9c7a6e41d8da5d7769
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 1/2] Revert "initmethod-bbinit: add more empty folders for ifupdown"
  2024-04-03 10:08 [ptxdist] [PATCH 0/2] ifupdown: Remove not used hook folders again Alexander Dahl
@ 2024-04-03 10:08 ` Alexander Dahl
  2024-04-08 11:05   ` [ptxdist] [APPLIED] " Michael Olbrich
  2024-04-03 10:08 ` [ptxdist] [PATCH 2/2] Revert "initmethod-systemd: " Alexander Dahl
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2024-04-03 10:08 UTC (permalink / raw)
  To: ptxdist

Scripts in those folders not considered anymore since busybox 1.21.0
(ptxdist-2013.06.0).

This reverts commit eb2d9e63ae110b7f3069307ee89a4d281f12d118.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/initmethod-bbinit.make | 2 --
 1 file changed, 2 deletions(-)

diff --git a/rules/initmethod-bbinit.make b/rules/initmethod-bbinit.make
index 75d381e29..4ae5c3284 100644
--- a/rules/initmethod-bbinit.make
+++ b/rules/initmethod-bbinit.make
@@ -59,10 +59,8 @@ ifdef PTXCONF_INITMETHOD_BBINIT_ETC_INITD_NETWORKING
 	@$(call install_alternative, initmethod-bbinit, 0, 0, 0644, /etc/network/interfaces, n)
 	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-down.d)
 	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-up.d)
-	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-pre-down.d)
 	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-post-down.d)
 	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-pre-up.d)
-	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-post-up.d)
 endif
 
 ifdef PTXCONF_INITMETHOD_BBINIT_ETC_INITD_RT_SET_BANDWIDTH
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 2/2] Revert "initmethod-systemd: add more empty folders for ifupdown"
  2024-04-03 10:08 [ptxdist] [PATCH 0/2] ifupdown: Remove not used hook folders again Alexander Dahl
  2024-04-03 10:08 ` [ptxdist] [PATCH 1/2] Revert "initmethod-bbinit: add more empty folders for ifupdown" Alexander Dahl
@ 2024-04-03 10:08 ` Alexander Dahl
  2024-04-08 11:05   ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2024-04-03 10:08 UTC (permalink / raw)
  To: ptxdist

Scripts in those folders not considered anymore since busybox 1.21.0
(ptxdist-2013.06.0).

This reverts commit 09e94f459f26c5784a0440cb946fc97fc53f5879.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/initmethod-systemd.make | 2 --
 1 file changed, 2 deletions(-)

diff --git a/rules/initmethod-systemd.make b/rules/initmethod-systemd.make
index be2a31817..8701a6bc1 100644
--- a/rules/initmethod-systemd.make
+++ b/rules/initmethod-systemd.make
@@ -48,10 +48,8 @@ ifdef PTXCONF_INITMETHOD_SYSTEMD_IFUPDOWN
 	@$(call install_alternative, initmethod-systemd, 0, 0, 0644, /etc/network/interfaces)
 	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-down.d)
 	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-up.d)
-	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-down.d)
 	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-down.d)
 	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-up.d)
-	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-up.d)
 endif
 
 	@$(call install_finish,initmethod-systemd)
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [APPLIED] Revert "initmethod-bbinit: add more empty folders for ifupdown"
  2024-04-03 10:08 ` [ptxdist] [PATCH 1/2] Revert "initmethod-bbinit: add more empty folders for ifupdown" Alexander Dahl
@ 2024-04-08 11:05   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2024-04-08 11:05 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as b3782507809a289ced9b5cf7b9eff91107ef7340.

Michael

[sent from post-receive hook]

On Mon, 08 Apr 2024 13:05:21 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> Scripts in those folders not considered anymore since busybox 1.21.0
> (ptxdist-2013.06.0).
> 
> This reverts commit eb2d9e63ae110b7f3069307ee89a4d281f12d118.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20240403100856.46337-2-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/initmethod-bbinit.make b/rules/initmethod-bbinit.make
> index 75d381e29dca..4ae5c3284328 100644
> --- a/rules/initmethod-bbinit.make
> +++ b/rules/initmethod-bbinit.make
> @@ -59,10 +59,8 @@ ifdef PTXCONF_INITMETHOD_BBINIT_ETC_INITD_NETWORKING
>  	@$(call install_alternative, initmethod-bbinit, 0, 0, 0644, /etc/network/interfaces, n)
>  	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-down.d)
>  	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-up.d)
> -	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-pre-down.d)
>  	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-post-down.d)
>  	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-pre-up.d)
> -	@$(call install_copy, initmethod-bbinit, 0, 0, 0755, /etc/network/if-post-up.d)
>  endif
>  
>  ifdef PTXCONF_INITMETHOD_BBINIT_ETC_INITD_RT_SET_BANDWIDTH



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [APPLIED] Revert "initmethod-systemd: add more empty folders for ifupdown"
  2024-04-03 10:08 ` [ptxdist] [PATCH 2/2] Revert "initmethod-systemd: " Alexander Dahl
@ 2024-04-08 11:05   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2024-04-08 11:05 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 7c9507daa76067b8e08357809baa89e63b45b317.

Michael

[sent from post-receive hook]

On Mon, 08 Apr 2024 13:05:22 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> Scripts in those folders not considered anymore since busybox 1.21.0
> (ptxdist-2013.06.0).
> 
> This reverts commit 09e94f459f26c5784a0440cb946fc97fc53f5879.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20240403100856.46337-3-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/initmethod-systemd.make b/rules/initmethod-systemd.make
> index be2a31817a6e..8701a6bc138c 100644
> --- a/rules/initmethod-systemd.make
> +++ b/rules/initmethod-systemd.make
> @@ -48,10 +48,8 @@ ifdef PTXCONF_INITMETHOD_SYSTEMD_IFUPDOWN
>  	@$(call install_alternative, initmethod-systemd, 0, 0, 0644, /etc/network/interfaces)
>  	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-down.d)
>  	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-up.d)
> -	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-down.d)
>  	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-down.d)
>  	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-up.d)
> -	@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-up.d)
>  endif
>  
>  	@$(call install_finish,initmethod-systemd)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-08 11:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-03 10:08 [ptxdist] [PATCH 0/2] ifupdown: Remove not used hook folders again Alexander Dahl
2024-04-03 10:08 ` [ptxdist] [PATCH 1/2] Revert "initmethod-bbinit: add more empty folders for ifupdown" Alexander Dahl
2024-04-08 11:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2024-04-03 10:08 ` [ptxdist] [PATCH 2/2] Revert "initmethod-systemd: " Alexander Dahl
2024-04-08 11:05   ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox