* have busybox prompt for password in initramfs boot
@ 2022-04-23 20:56 Embedded 1
2022-04-25 10:01 ` [yocto] " Michael Opdenacker
0 siblings, 1 reply; 3+ messages in thread
From: Embedded 1 @ 2022-04-23 20:56 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
when I boot my initramfs and run init=/bin/sh I'm not prompted for a
password. How can I require a password before entering the shell?
This is my initramfs recipe
IMAGE_FEATURES = ""
EXTRA_IMAGE_FEATURES = ""
export IMAGE_BASENAME = "test-initramfs"
IMAGE_LINGUAS = ""
PACKAGE_INSTALL = "\
base-files \
base-passwd \
busybox \
"
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
inherit core-image
inherit extrausers
EXTRA_USERS_PARAMS = "usermod -p $(openssl passwd test) root;"
[-- Attachment #2: Type: text/html, Size: 703 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] have busybox prompt for password in initramfs boot
2022-04-23 20:56 have busybox prompt for password in initramfs boot Embedded 1
@ 2022-04-25 10:01 ` Michael Opdenacker
2022-04-25 17:23 ` Embedded 1
0 siblings, 1 reply; 3+ messages in thread
From: Michael Opdenacker @ 2022-04-25 10:01 UTC (permalink / raw)
To: Embedded 1, yocto
Hello
On 4/23/22 22:56, Embedded 1 wrote:
> when I boot my initramfs and run init=/bin/sh I'm not prompted for a
> password. How can I require a password before entering the shell?
That's what you get when you use /bin/sh as the init process. Instead,
you could use the normal init program built in your image (which one it
is, Systemd or BusyBox init?), and get it to run the getty program
instead to get a login prompt.
Cheers
Michael.
--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] have busybox prompt for password in initramfs boot
2022-04-25 10:01 ` [yocto] " Michael Opdenacker
@ 2022-04-25 17:23 ` Embedded 1
0 siblings, 0 replies; 3+ messages in thread
From: Embedded 1 @ 2022-04-25 17:23 UTC (permalink / raw)
To: Michael Opdenacker; +Cc: yocto
> On 4/23/22 22:56, Embedded 1 wrote:
> > when I boot my initramfs and run init=/bin/sh I'm not prompted for a
> > password. How can I require a password before entering the shell?
>
>
> That's what you get when you use /bin/sh as the init process. Instead,
> you could use the normal init program built in your image (which one it
> is, Systemd or BusyBox init?), and get it to run the getty program
> instead to get a login prompt.
>
oh, I see. thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-25 19:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-23 20:56 have busybox prompt for password in initramfs boot Embedded 1
2022-04-25 10:01 ` [yocto] " Michael Opdenacker
2022-04-25 17:23 ` Embedded 1
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.