Skip to contentSkip to conversation

QEMU core-image-minimal cannot login

DISCUSSION Aleksandar Nikolic 3 participants 6 messages Dec 19, 2023 – Dec 20, 2023

lore
Share & tools
lore
#0 lore raw

Hi guys,

I built the core-image-minimal image provided by poky for the QEMU machine (no changes, built as provided). However, I am not able to log in with the root user (getting "Login incorrect" immediately), for more see [1]. Any help is appreciated.

Thanks and cheers.
Aleksandar

[1]
Starting udev
[    2.900576] udevd[157]: starting version 3.2.10
[    2.968761] udevd[158]: starting eudev-3.2.10
[    3.544379] EXT4-fs (vda): re-mounted. Opts: (null). Quota mode: disabled.
INIT: Entering runlevel: 5
Configuring network interfaces... ip: RTNETLINK answers: File exists Starting syslogd/klogd: done

Poky (Yocto Project Reference Distro) 4.0.11 qemux86-64 /dev/ttyS0

qemux86-64 login: root
Login incorrect
qemux86-64 login:

#1 lore raw

Okay, "debug-tweaks" was not in IMAGE_FEATURES, simply adding that has solved the issue. Shouldn't "debug-tweaks" be in IMAGE_FEATURES by default though?

#2 lore raw
Quoted 3 lines · Aleksandar Nikolic via lists.yoctoproject.org

Okay, "debug-tweaks" was not in IMAGE_FEATURES, simply adding that has solved the issue. Shouldn't "debug-tweaks" be in IMAGE_FEATURES by default though?

“Insecure out of the box” is not a great selling point. It’s trivial to opt-in to debug-tweaks but by being a default there’s a strong risk that someone shipped product with it enabled still.

Ross

#3 lore raw

Sure, sure, no argument there, from some reason I thought it used to be a default behavior, I guess I am wrong. Thanks.

Aleksandar

#4 lore raw
Quoted 3 lines · Aleksandar Nikolic

Sure, sure, no argument there, from some reason I thought it used to be a default behavior, I guess I am wrong. Thanks.

It's default in the out of the box local.conf (meta-poky/conf/templates/default/local.conf.sample):

# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

Likely you have something else?

Signature · 1 line
Alex Kiernan
#5 lore raw
Quoted 11 lines · Alex Kiernan
Quoted 2 lines · Aleksandar Nikolic

Sure, sure, no argument there, from some reason I thought it used to be a default behavior, I guess I am wrong. Thanks.

It's default in the out of the box local.conf (meta-poky/conf/templates/default/local.conf.sample):

# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

Likely you have something else?

Yes, I have my own local.conf, without the line you wrote above. Thanks for the clarification.

Aleksandar