Skip to contentSkip to conversation

Removing debug-tweaks removes /etc/shadow

DISCUSSION Mike Looijmans 1 participant 1 message Aug 3, 2023

lore
Share & tools
lore
#0 lore raw

I have an unsolved mystery here.

If I build an image with "debug-tweaks" in [EXTRA_]IMAGE_FEATURES, I get a normal image, where logging in as root works as expected.

If i replace "debug-tweaks" with other options, for example one of these:
EXTRA_IMAGE_FEATURES = "empty-root-password allow-empty-password allow-root-login post-install-logging" EXTRA_IMAGE_FEATURES = "empty-root-password allow-root-login"

That first variant should be equal to "debug-tweaks" according to the descriptions in core-image.bbclass and rootfs-postcommands.bbclass.

However, the end result is that the image ends up without /etc/shadow and though one can log in as root, the system doesn't actually seem to know who you are, so "root" does not appear in the prompt, "~" does not match "/homw/root", and UID 0 does not match "root".

It's a total mystery to me how "debug-tweaks" has any effect on that.

I'm currently using langdale branch and initscripts.

Any thoughts?

Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl