From: Wade Berrier <wberrier@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] system: only set the root password if it's not empty
Date: Tue, 2 Jul 2013 02:52:26 -0600 [thread overview]
Message-ID: <20130702085224.GA25620@berrier.lan> (raw)
No need to replace the password in etc/shadow with a blank password.
This also helps alleviate the situation when etc/shadow contains a password
which isn't meant to be blown away with a blank root password because mkpasswd
is non-functioning (rhel6).
This is somewhat of a workaround for distros (rhel6, and maybe fedora?) that
don't have a compatible mkpasswd. They have grub-crypt, but it doesn't appear
to be as script friendly.
Signed-off-by: Wade Berrier <wberrier@gmail.com>
---
system/system.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/system/system.mk b/system/system.mk
index 50c86ad..fa98532 100644
--- a/system/system.mk
+++ b/system/system.mk
@@ -57,7 +57,9 @@ TARGETS += target-generic-issue
endif
ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
+ifneq ($(TARGET_GENERIC_ROOT_PASSWD),)
TARGETS += target-root-passwd
+endif
ifneq ($(TARGET_GENERIC_GETTY),)
TARGETS += target-generic-getty-$(if $(BR2_PACKAGE_SYSVINIT),sysvinit,busybox)
--
1.7.9.5
next reply other threads:[~2013-07-02 8:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 8:52 Wade Berrier [this message]
2013-07-02 17:31 ` [Buildroot] [PATCH] system: only set the root password if it's not empty Yann E. MORIN
2013-07-03 4:46 ` Wade Berrier
2013-07-28 8:40 ` Thomas De Schampheleire
2013-07-28 13:06 ` Thomas Petazzoni
2013-09-05 7:24 ` Thomas De Schampheleire
2013-09-08 5:44 ` Wade Berrier
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=20130702085224.GA25620@berrier.lan \
--to=wberrier@gmail.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