diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2017-07-25 23:14:23 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-31 23:56:57 +0200 |
commit | 7c1692df6f72ae4c3581a6a43cd2479b11c5ed84 (patch) | |
tree | ed41fba4ee11090ebbf5041d197dae30be0dcb9d /system/Config.in | |
parent | 25a7a93a5012776f2d4e1ddefcf315b5921e826e (diff) | |
download | buildroot-7c1692df6f72ae4c3581a6a43cd2479b11c5ed84.tar.gz buildroot-7c1692df6f72ae4c3581a6a43cd2479b11c5ed84.zip |
package/skeleton: drop dependency on host-mkpasswd
Setting the root pasword is done in a target-finalize hook, so we do not
need to enforce a dependency from the skeleton onto host-mkpasswd.
Dropping that dependency will simplify making skeleton a virtual
package (in up-coming changes).
Instead, it is now selected as any other package. As such, it is
guaranteed to be built before target-finalize.
This however introduces a slight change in behaviour: previously,
host-mkpasswd would only be built if we needed to hash the root password
from its plain-text value. Now, host-mkpasswd is always built as soon as
the root password is non-empty, even if already pre-hashed.
Since host-mkpasswd is a really tiny weeny package bundled in Buildroot,
with only two C files, built as a single unit with a single gcc call,
the overhead is really minimal. Compared to the simplifications this
will allow in the skeleton packages (plural: common, sysv, systemd,
custom) to come, this overhead is acceptable.
Yet another simplification, even if small, to ease providing multiple
skeletons.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'system/Config.in')
-rw-r--r-- | system/Config.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/Config.in b/system/Config.in index 828df4217e..1ee76e8e47 100644 --- a/system/Config.in +++ b/system/Config.in @@ -218,6 +218,7 @@ config BR2_ROOTFS_MERGED_USR config BR2_TARGET_ENABLE_ROOT_LOGIN bool "Enable root login with password" default y + select BR2_PACKAGE_HOST_MKPASSWD if BR2_TARGET_GENERIC_ROOT_PASSWD != "" help Allow root to log in with a password. |