public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sshd-regen-keys: Issue sync after regeneration
@ 2020-05-30  6:54 Jan Kiszka
  2020-08-31 16:30 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2020-05-30  6:54 UTC (permalink / raw)
  To: isar-users

From: Jan Kiszka <jan.kiszka@siemens.com>

This reduces the risk that a hard reset or power loss after the
regeneration leaves invalid key files behind, thus prevents that sshd
comes up again.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
index 11fca3b4..910d879b 100644
--- a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
+++ b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
@@ -16,3 +16,5 @@ if test -n $SSHD_ENABLED; then
     echo "Reenabling ssh server ..."
     systemctl enable --no-reload ssh
 fi
+
+sync
--
2.26.2

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

* Re: [PATCH] sshd-regen-keys: Issue sync after regeneration
  2020-05-30  6:54 [PATCH] sshd-regen-keys: Issue sync after regeneration Jan Kiszka
@ 2020-08-31 16:30 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2020-08-31 16:30 UTC (permalink / raw)
  To: isar-users, Baurzhan Ismagulov

On 30.05.20 08:54, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> This reduces the risk that a hard reset or power loss after the
> regeneration leaves invalid key files behind, thus prevents that sshd
> comes up again.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
> index 11fca3b4..910d879b 100644
> --- a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
> +++ b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.sh
> @@ -16,3 +16,5 @@ if test -n $SSHD_ENABLED; then
>      echo "Reenabling ssh server ..."
>      systemctl enable --no-reload ssh
>  fi
> +
> +sync
> --
> 2.26.2
> 

Ping.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

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

end of thread, other threads:[~2020-08-31 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30  6:54 [PATCH] sshd-regen-keys: Issue sync after regeneration Jan Kiszka
2020-08-31 16:30 ` Jan Kiszka

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