public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* Removing debug-tweaks removes /etc/shadow
@ 2023-08-03  6:53 Mike Looijmans
  0 siblings, 0 replies; only message in thread
From: Mike Looijmans @ 2023-08-03  6:53 UTC (permalink / raw)
  To: openembedded-core

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?


-- 
Mike Looijmans
System Expert

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

T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-03  6:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  6:53 Removing debug-tweaks removes /etc/shadow Mike Looijmans

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