Skip to contentSkip to conversation

can't login??

DISCUSSION Jaap de Jong 5 participants 7 messages Aug 20, 2012 – Aug 21, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Totaly stupid...
Can't login as root.
Have build an image with this:

require recipes-core/images/core-image-minimal.bb

# Use busybox as login manager
IMAGE_LOGIN_MANAGER = "busybox"

# Include minimum init and init scripts
IMAGE_DEV_MANAGER = "udev"
IMAGE_INIT_MANAGER = "sysvinit sysvinit-pidof"
IMAGE_INITSCRIPTS = ""

Any hint is appreciated...

#1 lore raw
Quoted 9 lines · Jaap de Jong

Totaly stupid...
Can't login as root.
Have build an image with this:

require recipes-core/images/core-image-minimal.bb

# Use busybox as login manager
IMAGE_LOGIN_MANAGER = "busybox"

Quoted 8 lines

# Include minimum init and init scripts
IMAGE_DEV_MANAGER = "udev"
IMAGE_INIT_MANAGER = "sysvinit sysvinit-pidof"
IMAGE_INITSCRIPTS = ""

Any hint is appreciated...

What IMAGE_FEATURES do you have?

cat /etc/passwd | grep root ?

ag

#2 lore raw
In reply to Jaap de Jong
Quoted 6 lines · On Monday 20 August 2012 12:06:54 Jaap de Jong wrote:

Totaly stupid...
Can't login as root.
Have build an image with this:

require recipes-core/images/core-image-minimal.bb

Quoted 7 lines

# Use busybox as login manager
IMAGE_LOGIN_MANAGER = "busybox"

# Include minimum init and init scripts IMAGE_DEV_MANAGER = "udev" IMAGE_INIT_MANAGER = "sysvinit sysvinit-pidof" IMAGE_INITSCRIPTS = ""

Is "debug-tweaks" in IMAGE_FEATURES?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 5 lines · On Monday 20 August 2012 14:09:48 Jaap de Jong wrote:

What I'm trying to do is get an image that looks as much the same as the one I made under oe-classic.
Perhaps my approach is not the way to go?
I was using base-image.bb under oe-classic as the basis and added some packages to get to our needed set of applications.

There's nothing wrong with that - you can construct the image in whatever manner you wish. You may wish to take advantage of the new functionality provided by core-image.bbclass, but that is entirely optional.

Quoted 4 lines · Paul Eggleton
Quoted 1 line

Is "debug-tweaks" in IMAGE_FEATURES?

(To answer your question. No, it is not. More of that in my previous mail)

The way things work now, zap_root_password is automatically run when post- processing the image, unless debug-tweaks is in IMAGE_FEATURES (typically, one would add this via EXTRA_IMAGE_FEATURES in local.conf). This is a replacement for DISTRO_TYPE = "debug" / "release" in OE-Classic. The assumption is that if you're actually producing a production image, you really don't want people to be able to log into it as root with no password.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw
In reply to Paul Eggleton

Hi,

Quoted 3 lines · Paul Eggleton

Is "debug-tweaks" in IMAGE_FEATURES?

I too have the same problem, I've got debug-tweaks in IMAGE_FEATURES, but it doesn't allow me to login. If I type root as the username, it does nothing and brings up the login prompt again.

Starting syslogd/klogd:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login: root

Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:

Elvis Dowson

#6 lore raw
Quoted 6 lines · On Monday 20 August 2012 19:42:47 Elvis Dowson wrote:
Quoted 1 line · Paul Eggleton

Is "debug-tweaks" in IMAGE_FEATURES?

I too have the same problem, I've got debug-tweaks in IMAGE_FEATURES, but it doesn't allow me to login. If I type root as the username, it does nothing and brings up the login prompt again.

That's a different problem. I wish I could help but I'm not sure what would cause that particular issue.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#7 lore raw
In reply to Elvis Dowson

I don't know your issue, but the attached recipe should work. You could try it and then starting ripping things out.

Joe

Quoted 44 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-core- [email protected]] On Behalf Of Elvis Dowson
Sent: Monday, August 20, 2012 8:43 AM
To: Paul Eggleton
Cc: [email protected]
Subject: Re: [OE-core] can't login??

Hi,

On Aug 20, 2012, at 2:34 PM, Paul Eggleton wrote:

Is "debug-tweaks" in IMAGE_FEATURES?

I too have the same problem, I've got debug-tweaks in IMAGE_FEATURES, but it doesn't allow me to login. If I type root as the username, it does nothing and brings up the login prompt again.

Starting syslogd/klogd:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login: root

Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:
Yocto (Built by Poky 7.0) 1.2+snapshot-20120820 (none) ttyS0

(none) login:

Elvis Dowson