systemd: Disable support for shadow group
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
@@ -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
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.serviceDisabling 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]
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/systemd/systemd_246.2.bb | 1 - 1 file changed, 1 deletion(-)meta/recipes-core/systemd/systemd_246.2.bb +0
-2@@ -66,7 +66,6 @@ PACKAGECONFIG ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \ backlight \ binfmt \ - gshadow \ hibernate \ hostnamed \ idn \ --2.28.0
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.serviceDisabling 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]
Signed-off-by Khem Raj <[email protected]>--- 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