Skip to contentSkip to conversation

systemd: Disable support for shadow group

PATCH In review Khem Raj 3 participants 3 messages Sep 19, 2020 – Sep 20, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 systemd: Disable support for shadow group

enabling shadow drags sshd key generation service into boot path and serial console launch over getty gets delayed until ssh key generation is done, on slowers platforms eg. non-kvm qemu this can take minutes to get ssh keys service to finish on first boot.

On qemumips
56.963s sshdgenkeys.service

Disabling shadow, pulls this out of boot chain, and ssh keys are still generated but this time it will happen when ssh'ing first time into the machine.

[YOCTO #13646]

---
 meta/recipes-core/systemd/systemd_246.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/systemd/systemd_246.2.bb +0 -1
index af10e4212b..e3a7cd4971 100644
@@ -66,7 +66,6 @@ PACKAGECONFIG ??= " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
     backlight \
     binfmt \
-    gshadow \
     hibernate \
     hostnamed \
     idn \
Signature · 1 line
2.28.0
#1 lore raw
Quoted 5 lines · Khem Raj

enabling shadow drags sshd key generation service into boot path and serial console launch over getty gets delayed until ssh key generation is done, on slowers platforms eg. non-kvm qemu this can take minutes to get ssh keys service to finish on first boot.

Hmm, I don't recall this being the case, particularly after we reniced ssh key generation, but maybe I need to try again

Quoted 34 lines

On qemumips
56.963s sshdgenkeys.service

Disabling shadow, pulls this out of boot chain, and ssh keys are still generated but this time it will happen when ssh'ing first time into the machine.

[YOCTO #13646]

---
 meta/recipes-core/systemd/systemd_246.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/systemd/systemd_246.2.bb +0 -2
index af10e4212b..e3a7cd4971 100644
@@ -66,7 +66,6 @@ PACKAGECONFIG ??= " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
     backlight \
     binfmt \
-    gshadow \
     hibernate \
     hostnamed \
     idn \
--

2.28.0

#2 lore raw
In reply to Khem Raj
Quoted 16 lines · Khem Raj

enabling shadow drags sshd key generation service into boot path and serial console launch over getty gets delayed until ssh key generation
is done, on slowers platforms eg. non-kvm qemu this can take minutes to
get ssh keys service to finish on first boot.

On qemumips
56.963s sshdgenkeys.service

Disabling shadow, pulls this out of boot chain, and ssh keys are still
generated but this time it will happen when ssh'ing first time into the
machine.

Quoted 6 lines

[YOCTO #13646]

---
 meta/recipes-core/systemd/systemd_246.2.bb | 1 -
 1 file changed, 1 deletion(-)

I tested this locally and disabling gshadow didn't seem to affect the qemumips serial login time. That matches the fact we didn't see it blocking on ssh keygen in the traces :/.

Cheers,

Richard