* [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU?
@ 2016-08-02 6:24 Ciro Santilli
2016-08-02 7:41 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Ciro Santilli @ 2016-08-02 6:24 UTC (permalink / raw)
To: buildroot
If I do:
git clone git://git.buildroot.net/buildroot
cd buildroot
git checkout 2016.05
make qemu_x86_defconfig
make BR2_JLEVEL=2
qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive
file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda
-net nic,model=virtio -net user
I have to type `root` into QEMU before I can use the shell.
How to configure buildroot to skip that and login directly?
Tested on Ubuntu 16.04.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160802/a5e4006d/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU?
2016-08-02 6:24 [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU? Ciro Santilli
@ 2016-08-02 7:41 ` Thomas Petazzoni
2016-08-03 7:52 ` Ciro Santilli
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-08-02 7:41 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 2 Aug 2016 07:24:24 +0100, Ciro Santilli wrote:
> How to configure buildroot to skip that and login directly?
Override the default /etc/inittab, and start a shell process directly
rather than a getty process. I.e, replace:
console::respawn:/sbin/getty -n -L console 0 vt100 # GENERIC_SERIAL
by:
console::respawn:/bin/sh
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU?
2016-08-02 7:41 ` Thomas Petazzoni
@ 2016-08-03 7:52 ` Ciro Santilli
2016-08-03 8:18 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Ciro Santilli @ 2016-08-03 7:52 UTC (permalink / raw)
To: buildroot
Thanks!
Is editing `package/busybox/inittab` the best way to do it?
Or is there a more specific `.config` option? I know about
BR2_ROOTFS_OVERLAY.
On Tue, Aug 2, 2016 at 8:41 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Tue, 2 Aug 2016 07:24:24 +0100, Ciro Santilli wrote:
>
> > How to configure buildroot to skip that and login directly?
>
> Override the default /etc/inittab, and start a shell process directly
> rather than a getty process. I.e, replace:
>
> console::respawn:/sbin/getty -n -L console 0 vt100 # GENERIC_SERIAL
>
> by:
>
> console::respawn:/bin/sh
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/194586e4/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU?
2016-08-03 7:52 ` Ciro Santilli
@ 2016-08-03 8:18 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-08-03 8:18 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 3 Aug 2016 08:52:48 +0100, Ciro Santilli wrote:
> Is editing `package/busybox/inittab` the best way to do it?
No.
> Or is there a more specific `.config` option? I know about
> BR2_ROOTFS_OVERLAY.
Yes, use an overlay to install your custom version of inittab. Or
alternatively, a post-build script to tweak the inittab at the end of
the build.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-03 8:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 6:24 [Buildroot] How to login automatically without typing root in buildroot x86 64 QEMU? Ciro Santilli
2016-08-02 7:41 ` Thomas Petazzoni
2016-08-03 7:52 ` Ciro Santilli
2016-08-03 8:18 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox