public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: openembedded-core@lists.openembedded.org
Subject: Removing debug-tweaks removes /etc/shadow
Date: Thu, 3 Aug 2023 08:53:59 +0200	[thread overview]
Message-ID: <908f19c2-e434-f47e-232c-cfd41c824bf9@topic.nl> (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?


-- 
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



                 reply	other threads:[~2023-08-03  6:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=908f19c2-e434-f47e-232c-cfd41c824bf9@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox