mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup
@ 2015-03-16 13:19 Juergen Borleis
  2015-03-16 13:21 ` Alexander Aring
  2015-03-16 13:53 ` Alexander Dahl
  0 siblings, 2 replies; 4+ messages in thread
From: Juergen Borleis @ 2015-03-16 13:19 UTC (permalink / raw)
  To: ptxdist

Enabling this entry makes no sense when systemd is used instead of initV,
because the rule file ignores this entry and does nothing.

diff --git a/rules/dropbear.in b/rules/dropbear.in
index fe2ada369521..c60db58d45c6 100644
--- a/rules/dropbear.in
+++ b/rules/dropbear.in
@@ -367,6 +367,7 @@ comment "runtime options   ---"
 
 config DROPBEAR_STARTSCRIPT
 	bool
+	depends on INITMETHOD_BBINIT
 	default y
 	prompt "install /etc/init.d/dropbear"

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup
  2015-03-16 13:19 [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup Juergen Borleis
@ 2015-03-16 13:21 ` Alexander Aring
  2015-03-16 13:53 ` Alexander Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2015-03-16 13:21 UTC (permalink / raw)
  To: ptxdist

Hi Juergen,

On Mon, Mar 16, 2015 at 02:19:37PM +0100, Juergen Borleis wrote:
> Enabling this entry makes no sense when systemd is used instead of initV,
> because the rule file ignores this entry and does nothing.
> 

-ENOSOB

Signed-off-by is missing here.

- Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup
  2015-03-16 13:19 [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup Juergen Borleis
  2015-03-16 13:21 ` Alexander Aring
@ 2015-03-16 13:53 ` Alexander Dahl
  2015-03-21 13:38   ` Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Alexander Dahl @ 2015-03-16 13:53 UTC (permalink / raw)
  To: ptxdist

Hei hei, 

Am 2015-03-16 14:19, schrieb Juergen Borleis:
> Enabling this entry makes no sense when systemd is used instead of initV,
> because the rule file ignores this entry and does nothing.

I had a brief look and it seems the dropbear package does not provide a
systemd unit file, so AFAIK systemd should use the legacy init script
for starting up dropbear. In other words: the startscript can be used by
systemd if there's no unit file and will always be used by bbinit.
Unless there's a systemd unit for dropbear I would not hard code the
dependency but let the user choose if she wants to install the
startscript or not.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup
  2015-03-16 13:53 ` Alexander Dahl
@ 2015-03-21 13:38   ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2015-03-21 13:38 UTC (permalink / raw)
  To: ptxdist

On Mon, Mar 16, 2015 at 02:53:19PM +0100, Alexander Dahl wrote:
> I had a brief look and it seems the dropbear package does not provide a
> systemd unit file, so AFAIK systemd should use the legacy init script
> for starting up dropbear. In other words: the startscript can be used by
> systemd if there's no unit file and will always be used by bbinit.

That does not work.
1. systemd sysv legacy support is disabled in PTXdist
2. It only works with init scripts with lsb headers.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-03-21 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16 13:19 [ptxdist] [PATCH] Dropbear: Provide init script install entry only for the initV based system startup Juergen Borleis
2015-03-16 13:21 ` Alexander Aring
2015-03-16 13:53 ` Alexander Dahl
2015-03-21 13:38   ` Michael Olbrich

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