From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] system: run getty on boot console by default
Date: Wed, 24 Dec 2014 09:03:01 +0000 [thread overview]
Message-ID: <1419411780.3420.5.camel@synopsys.com> (raw)
In-Reply-To: <20141223231052.6973e707@free-electrons.com>
Hi Thomas,
On Tue, 2014-12-23 at 23:10 +0100, Thomas Petazzoni wrote:
> Dear Alexey Brodkin,
>
> On Tue, 23 Dec 2014 21:18:56 +0000, Alexey Brodkin wrote:
>
> > Interesting, then how it worked for me?
> >
> > I have the same login prompt as usual:
> > --->---
> > Welcome to Buildroot
> > buildroot login:
> > --->---
> >
> > Here I enter "root" as usual, press Enter and that's it.
> > "whoami" says "root" and I may modify any files etc.
> >
> > What do I do wrong?
>
> Weird, when I tested I had to add "console" to /etc/securetty,
> otherwise login would not let me log in as root. Are you using just
> Busybox, or some other login/getty implementation? Are you using an
> unmodified /etc/securetty?
Indeed it's strange.
I've just re-tested it and still see root login working perfectly.
I'm on mainline/master branch with my patch applied (no other changes):
--->---
(my patch) 7af7de3 system: run getty on boot console by default
f7add51 qemu: add host/target Linux version check
--->---
And this is output of "make savedefconfig":
--->---
BR2_x86_pentiumpro=y
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.18"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.18"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86/linux-3.18.config"
BR2_TARGET_ROOTFS_EXT2=y
# BR2_TARGET_ROOTFS_TAR is not set
--->---
Note that this is based on "qemu_x86_defconfig" and with my patch
applied that's why you don't see mention of "console".
You may try even without my patch and manually set
BR2_TARGET_GENERIC_GETTY_PORT=console
-Alexey
next prev parent reply other threads:[~2014-12-24 9:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-23 12:06 [Buildroot] [PATCH] system: run getty on boot console by default Alexey Brodkin
2014-12-23 12:18 ` Yegor Yefremov
2014-12-23 12:32 ` Alexey Brodkin
2014-12-23 13:57 ` Yegor Yefremov
2014-12-23 14:35 ` Alexey Brodkin
2014-12-23 19:52 ` Thomas Petazzoni
2014-12-23 21:18 ` Alexey Brodkin
2014-12-23 22:10 ` Thomas Petazzoni
2014-12-24 9:03 ` Alexey Brodkin [this message]
2015-01-09 18:15 ` Alexey Brodkin
2015-01-10 16:10 ` Thomas Petazzoni
2015-01-12 22:07 ` Thomas Petazzoni
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=1419411780.3420.5.camel@synopsys.com \
--to=alexey.brodkin@synopsys.com \
--cc=buildroot@busybox.net \
/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