From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1 v2] Hide issue and hostname menu when using a custom skeleton.
Date: Wed, 14 Aug 2013 00:29:57 +0200 [thread overview]
Message-ID: <20130813222957.GB3427@free.fr> (raw)
In-Reply-To: <20130814001125.13282e32@skate>
Thomas, All,
On 2013-08-14 00:11 +0200, Thomas Petazzoni spake thusly:
> Gustavo, Yann, Thomas, Arnout,
>
> What do you think of the below patch?
I think the idea behind the patch is valid.
However, I've not teted it, so I can't say if the patch is OK or not.
With a simple look at system/system.mk, it seems it would work as
expected.
> My main concern is that it handles the case of /etc/issue
> and /etc/hostname, but I see potentially other "System configuration"
> parameters that may conflict with a custom skeleton.
>
> Thoughts?
I'd say, we should take it, and if some other "System configuration"
items need to be guarded behind BR2_ROOTFS_SKELETON_DEFAULT, we can
still move them later when the need arises.
> Thomas
>
> On Sun, 13 Jan 2013 19:39:59 +0100, Sagaert Johan wrote:
> >
> > Only show hostname and issue options when the default skeleton is selected.
> > Moved the menu sections so that when a custom skeleton is selected the
> > issue and hostname options are hidden.
> >
> > Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be>
> > ---
> > v2 : Only hide issue and hostname menu when a custom skeleton is selected.
> >
> > system/Config.in | 24 ++++++++++++------------
> > 1 file changed, 12 insertions(+), 12 deletions(-)
> >
> > diff --git a/system/Config.in b/system/Config.in
> > index 69863c4..5b38cae 100644
> > --- a/system/Config.in
> > +++ b/system/Config.in
> > @@ -1,17 +1,5 @@
> > menu "System configuration"
> >
> > -config BR2_TARGET_GENERIC_HOSTNAME
> > - string "System hostname"
> > - default "buildroot"
> > - help
> > - Select system hostname to be stored in /etc/hostname.
> > -
> > -config BR2_TARGET_GENERIC_ISSUE
> > - string "System banner"
> > - default "Welcome to Buildroot"
> > - help
> > - Select system banner (/etc/issue) to be displayed at login.
> > -
> > choice
> > bool "Passwords encoding"
> > default BR2_TARGET_GENERIC_PASSWD_MD5
> > @@ -173,6 +161,18 @@ endif
> >
> > if BR2_ROOTFS_SKELETON_DEFAULT
> >
> > +config BR2_TARGET_GENERIC_HOSTNAME
> > + string "System hostname"
> > + default "buildroot"
> > + help
> > + Select system hostname to be stored in /etc/hostname.
> > +
> > +config BR2_TARGET_GENERIC_ISSUE
> > + string "System banner"
> > + default "Welcome to Buildroot"
> > + help
> > + Select system banner (/etc/issue) to be displayed at login.
> > +
> > config BR2_TARGET_GENERIC_ROOT_PASSWD
> > string "Root password"
> > default ""
>
>
>
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2013-08-13 22:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-13 18:39 [Buildroot] [PATCH 1/1 v2] Hide issue and hostname menu when using a custom skeleton Sagaert Johan
2013-08-13 22:11 ` Thomas Petazzoni
2013-08-13 22:29 ` Yann E. MORIN [this message]
2013-08-14 12:37 ` Gustavo Zacarias
2014-01-05 17:41 ` Yann E. MORIN
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=20130813222957.GB3427@free.fr \
--to=yann.morin.1998@free.fr \
--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