aboutsummaryrefslogtreecommitdiff
path: root/system
Commit message (Collapse)AuthorAgeFilesLines
* system: move tz setup outside of default skeleton clauseGravatar Danomi Manchego2014-07-271-13/+13
| | | | | | | | | Allow time zone setup and installation for configurations using custom skeletons as well as default skeletons. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* system/skeleton: remove spurious group 'nobody'Gravatar Yann E. MORIN2014-07-231-1/+0
| | | | | | | | | | | | | | | | We define the two groups 'nobody' and 'nogroup' in our skeleton, but they have the same gid, which is not valid. This breaks the mkuser script, as noticed by Thomas. Anyway, the user 'nobody' belongs to the group 'nogroup' in any sane distribution. So, just remove the spurious 'nobody' group. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* system: convert "system.mk" recipes to "target-finalize" hooksGravatar Fabio Porcedda2014-06-291-37/+43
| | | | | | | | | | | Convert "system.mk" recipes to "target-finalize" hooks in order to: - Ensure an ordering even if top-level parallel make is being used. - Execute "system.mk" commands after the "target-finalize" initial message is printed so they can be clearly distinguished from packages building. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: needs kernel headers >= 3.10Gravatar Eric Le Bihan2014-06-131-3/+3
| | | | | | | | | | Systemd needs a toolchain with kernel headers >= 3.10, as it needs IFLA_VLAN_PROTOCOL from linux/if_link.h. Fixes: http://autobuild.buildroot.net/results/33e/33e1447949d13bccc4076b69f902432e2131cc1c Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Remove user "default"Gravatar Stephan Hoffmann2014-06-074-4/+0
| | | | | | | | | | User "default" with no password has been around for long time, but not used within buildroot. Since we now have BR2_ROOTFS_USERS_TABLES it is no longer needed. Signed-off-by: Stephan Hoffmann <sho@relinux.de> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* replace references to Busybox with BusyBoxGravatar Simon Dawson2014-06-011-1/+1
| | | | | | | | | The correct capitalised form appears to be "BusyBox" rather than "Busybox"; fix all references to the latter form. (Most such references occur in the manual and in commentary in package makefiles.) Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system/Config.in: fix custom skeleton help textGravatar Thomas De Schampheleire2014-05-021-1/+1
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: fix spelling errorsGravatar Ryan Barnett2014-05-021-2/+2
| | | | | | | | | Fix minor spelling errors that exists in system/Config.in Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: add ability to pass additional users tables.Gravatar Eric Le Bihan2014-04-211-0/+9
| | | | | | | | | | | | | | | | | | | | A new entry has been added to the "System Configuration" menu to allow the user to set the location of additional user tables (besides the ones defined in packages). A user table is a text file, formatted using the mkusers syntax, which describes the users on the target system, with their UID/GID, home directory, password, etc. The target root file system will be populated according the content of these files. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> [yann.morin.1998@free.fr: use plural TABLES; we need to remove the intermediate users_table file, as it is no longer generated in one shot, in case a previous run failed and did not remove it] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* system: allow setting the local timezone for uClibcGravatar Yann E. MORIN2014-04-091-3/+5
| | | | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: add selection of a default localtimeGravatar Yann E. MORIN2014-04-081-0/+14
| | | | | | | | | | [Peter: strip quotes/use local TZDATA_LOCALTIME variable] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [alexandre.belloni: move from "tzdata" to "system configuration"] Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> [yann.morin.1998@free.fr: move into the BR2_TARGET_TZ_INFO conditionnal block] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: make the zoneinfo list a system optionGravatar Yann E. MORIN2014-04-081-0/+23
| | | | | | | [Peter: move legacy options under 2014.05] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system/skeleton: add mail groupGravatar Luca Ceresoli2014-04-051-0/+1
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: needs kernel headers >= 3.8Gravatar Eric Le Bihan2014-04-031-3/+3
| | | | | | | | | | Systemd needs Linux headers >= 3.8 because it uses IFLA_GRE_FLOWINFO, IFLA_IPTUN_FLAGS from linux/if_tunnel.h. Fixes http://autobuild.buildroot.org/results/ad3/ad3b4003dc50582a493f1156234d83652104a6bf/ Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: enable build for supported architectures.Gravatar Eric Le Bihan2014-03-291-1/+1
| | | | | | | | | | | | Systemd only supports the architectures defined in src/shared/architecture.h. So via a new parameter named BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS, we enable the build of this package only for those architectures. Fixes http://autobuild.buildroot.net/results/bcc/bcce95eb0748505c0d62db21a6e420aae3c3181b/ Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: needs kernel headers >= 3.0Gravatar Eric Le Bihan2014-03-241-2/+4
| | | | | | | | | | | | Systemd requires at least Linux headers 3.0 because it uses: - setns(2) syscall, introduced in 3.0. - IFLA_GROUP from if_link.h, introduced in 2.6.39. Fixes http://autobuild.buildroot.net/results/098/09866da023d527b3c228a98f1fde104e780e1883/ Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* device table dev: drop old CDROMsGravatar Gustavo Zacarias2014-03-121-15/+0
| | | | | | | | | | Drop old custom CDROM devices from the device table, these are x86-only and really really old so it would be amazing these would be in working order. And they haven't been supported in linux for while. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Merge branch 'next'Gravatar Peter Korsgaard2014-02-281-23/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile package/dmraid/Config.in package/gdb/Config.in.host package/linux-headers/linux-headers.mk package/python/python.mk package/python3/python3.mk package/rt-tests/Config.in package/sdl/sdl.mk package/systemd/systemd-01-fix-getty-unit.patch package/systemd/systemd-02-fix-page-size.patch package/systemd/systemd-03-uclibc-fix.patch package/udev/Config.in package/udisks/Config.in package/vlc/vlc.mk system/Config.in Quite some merge conflicts, hopefully I didn't screw up anything. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * systemd: bump to v207Gravatar eric.le.bihan.dev@free.fr2014-02-121-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch bumps systemd to v207 but also declares it as a provider for the udev virtual package. Starting with systemd 183, udev has been merged into systemd. The udev daemon is now installed as /lib/systemd/systemd-udevd. This means that /dev management using udev is only available if systemd is chosen as init system. When configuring systemd, the following options are available: - activation of systemd-journal-gatewayd, to access the journal via HTTP. - activation of extra features like journal compression and sealing. Support for uClibc has also been removed because: - upstream has no interest in supporting uClibc. - using a shrinked libc brings no advantage, given the size of all the programs included in Systemd. So using glibc does not matter. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * udev: convert to virtual packageGravatar eric.le.bihan.dev@free.fr2014-02-121-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch converts udev to a virtual package. For the moment, there is only one provider for the udev features: eudev. Packages meant to provide udev-like features must select the symbol BR2_PACKAGE_HAS_UDEV. Packages depending on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV or BR2_PACKAGE_UDEV have been converted to use the new symbol. [Peter: move legacy symbols under 2014.05] Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * eudev: new packageGravatar eric.le.bihan.dev@free.fr2014-02-121-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eudev is a userspace device management daemon. It is a standalone version, independent from systemd. It is a fork maintained by Gentoo. Features: - No extra configuration options are available: Gudev is build if libglib2 is selected. - No dependency on hwdata as the package uses its own hardware database (as does systemd). eudev 1.3 is in sync with systemd v207. [Peter: add BR2_USE_MMU dependency] Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | util-linux: libblkid needs fork(), disable on !MMUGravatar Thomas Petazzoni2014-02-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libblkid library in util-linux uses fork. While it seems potentially possible to disable the parts of the library that use fork (the only parts using fork are parts related to LVM and Device Mapper, which are said to be legacy as they are replaced by sysfs based scanning, instead of having to fork to run a separate process). However, since libblkid is used by: - e2fsprogs, which uses lots of fork all over the place - udev, which most likely will also need fork There is not much point in making libblkid fork-less. As a consequence, this commit makes util-linux/libblkid unavailable on non-MMU architectures, and propagates the relevant dependency to the reverse dependencies of libblkid. This fixes the e2fsprogs build failure seen on Blackfin. The failure was due to a configure test of e2fsprogs which was trying to link a small test program against libblkid, which failed because there was an undefined reference to fork() in the libblkid code. Fixes: http://autobuild.buildroot.net/results/ee2c1568d16ac040011dd4d6d8b543ff9e9e2622/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | skeleton: /etc/fstab: make sure /tmp is world writable and stickyGravatar Peter Korsgaard2014-02-211-1/+1
|/ | | | | | | | | | | ramfs (which is used instead of tmpfs if CONFIG_SHMEM isn't enabled in the kernel configuration), defaults to mode 0755 instead of 01777 like tmpfs uses. /tmp should be world writable and sticky, so explictly enforce the mode so ramfs users gets it correct instead of relying on the defaults. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: fix kconfig warning about BR2_PACKAGE_SYSVINITGravatar Peter Korsgaard2014-01-131-0/+1
| | | | | | | | | Fixes: warning: (BR2_INIT_SYSV) selects BR2_PACKAGE_SYSVINIT which has unmet direct dependencies (BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_INIT_SYSV) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: clarify issue/hostname settingsGravatar Sagaert Johan2014-01-101-0/+6
| | | | | | | | | | | | | | | | | | | A custom skeleton may include /etc/issue and/or /etc/hostname, in which case we do not want to override them. But those files could also be missing from the custom skeleton, or the user may want to override their content. Update the documentation to make it clear that the user can set these to the empty string to make buildroot not create/overwrite these files. [Peter: drop the different default values depending on skeleton] Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be> [yann.morin.1998@free.fr: change from hiding it behind SKELETON_DEFAULT to use conditional default values; move below the skeleton choice; improve help entries] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Add hypervisor consoles (hvc)Gravatar Anton Blanchard2013-12-162-0/+5
| | | | | | | | Add /dev/hvc* devices, and add them to securetty. These are required for ppc64 virtual consoles. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* udev: disable on avr32Gravatar Simon Dawson2013-12-051-0/+3
| | | | | | | udev requires the epoll_create1 system call, which is not available on avr32. Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: whitespace cleanupGravatar Thomas De Schampheleire2013-11-111-11/+11
| | | | | | | | | | This patch fixes the following whitespace problems in Config.in files: - trailing whitespace - spaces instead of tabs for indentation - help text not indented with tab + 2 spaces Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: move init system option above /dev management.Gravatar eric.le.bihan.dev@free.fr2013-11-111-29/+29
| | | | | | | | The option to choose init system was below the one for /dev management. As Systemd forces the use of udev, it is logical to swap them. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: add missing dependencies to toolchain option commentsGravatar Thomas De Schampheleire2013-11-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a package A depends on config option B and toolchain option C, then the comment that is given when C is not fulfilled should also depend on B. For example: config BR2_PACKAGE_A depends on BR2_B depends on BR2_LARGEFILE depends on BR2_WCHAR comment "A needs a toolchain w/ largefile, wchar" depends on !BR2_LARGEFILE || !BR2_WCHAR This comment should actually be: comment "A needs a toolchain w/ largefile, wchar" depends on BR2_B depends on !BR2_LARGEFILE || !BR2_WCHAR or if possible (typically when B is a package config option declared in that same Config.in file): if BR2_B comment "A needs a toolchain w/ largefile, wchar" depends on !BR2_LARGEFILE || !BR2_WCHAR [other config options depending on B] endif Otherwise, the comment would be visible even though the other dependencies are not met. This patch adds such missing dependencies, and changes existing such dependencies from depends on BR2_BASE_DEP && !BR2_TOOLCHAIN_USES_GLIBC to depends on BR2_BASE_DEP depends on !BR2_TOOLCHAIN_USES_GLIBC so that (positive) base dependencies are separate from the (negative) toolchain dependencies. This strategy makes it easier to write such comments (because one can simply copy the base dependency from the actual package config option), but also avoids complex and long boolean expressions. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (untested) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* device_table_dev.txt: Increase /dev/ttymxc countGravatar Abdul Hussain2013-10-281-1/+1
| | | | | | | | Since debug uart on imx6 sabreauto board is ttymxc3. Signed-off-by: Abdul Hussain <hussain.abdul@outlook.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* skeleton: Update /etc/protocols from Debian JessieGravatar Peter Sanford2013-10-271-12/+42
| | | | | | | This update adds IP protocols created in the last 20 years. Signed-off-by: Peter Sanford <psanford@nearbuysystems.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: unify comments of toolchain option dependenciesGravatar Thomas De Schampheleire2013-10-141-2/+2
| | | | | | | | This patch lines up the comments in Config.in files that clarify which toolchain options the package depends on. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system: default to devtmpfs for /devGravatar Peter Korsgaard2013-09-151-1/+1
| | | | | | | | | | | As discussed on the list, devtmpfs is quite a bit nicer default than the old static /dev, so change it. Notice that you NEED to enable CONFIG_DEVTMPFS / CONFIG_DEVTMPFS_MOUNT in the kernel configuration if you manually build a kernel outside buildroot, otherwise the rootfs won't work. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* getty: add the ability to pass options to gettyGravatar Assaf Inbal2013-09-152-2/+10
| | | | | | Signed-off-by: Assaf Inbal <shmuelzon@gmail.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* getty: Create specific getty config + cleanupsGravatar Assaf Inbal2013-09-152-18/+25
| | | | | | | | | | | This commit introduces a specific BR2_TARGET_GENERIC_GETTY configuration flag. This eliminates the need for checking if BR2_TARGET_GENERIC_GETTY_PORT is an empty string or not. It also allows hiding various getty options when getty isn't enabled. Signed-off-by: Assaf Inbal <shmuelzon@gmail.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* kmod: does not support static buildsGravatar Thomas Petazzoni2013-09-021-0/+4
| | | | | | | | | | | Since kmod 14, the support for building a static library has been removed completely from kmod. Therefore, we mark kmod as !BR2_PREFER_STATIC_LIB, as well as all its reverse dependencies, which includes the option to use the "udev" /dev management method. [Peter: show comment for udev when BR2_PREFER_STATIC_LIB is enabled] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* host-mkpasswd: new packageGravatar Thomas De Schampheleire2013-08-101-4/+6
| | | | | | | | | | | | | | | | | | | | | Since the addition of root password setting support in buildroot, there have been a few bug reports in this area ([1], [2]). In these cases, the system mkpasswd did either not work, or did not provide the options we expect, like -m <method>. This patch adds a mkpasswd host package, based on the sources from whois. When a non-empty root password is set, this package is used as a dependency. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> [1] http://lists.busybox.net/pipermail/buildroot/2013-July/075771.html [2] http://lists.busybox.net/pipermail/buildroot/2013-July/075869.html [Thomas P: use $(INSTALL) instead of install, put -lcrypt at the end of build command line to allow gcc to find the crypt() function in lcrypt.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* group file: define groups expected by udevGravatar Danomi Manchego2013-08-011-0/+8
| | | | | | | | | | | | | | | | | | | | | udev-182 requires several groups to be resolvable at udev startup, including disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, and kmem. Only some of these are in the default skeleton's group file, So let's add the missing groups, and plugdev too. This avoids getting these logs in /var/logs/messages: Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'dialout' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'kmem' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'video' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'lp' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'floppy' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'cdrom' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'tape' unknown Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* fix white spacesGravatar Jerzy Grzegorek2013-07-201-8/+8
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: add option to pass extra args to post-build and post-image scriptsGravatar Yann E. MORIN2013-07-101-5/+21
| | | | | | | | | | | | | | | | | It can be useful to have different configuration use the same post-build and/or post-image scripts as they share a common infrastructure, but yet have minor differentiation. This option allows passing zero or more additional arguments to each post-build or post-image script. The same set of extra arguments are passed to all scripts, it is not possible to pass different arguments to each script. [Peter: fix help text, post-image gets called with the images dir] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/permissions: make /root group+others non-writableGravatar Yann E. MORIN2013-06-231-0/+1
| | | | | | | | | | | | | | | | Upon logging, dropbear whines if /root is group- or others-writable, and key-based authentication is attempted, reverting to password-based authentication: dropbear[149]: /root must be owned by user or root, and not writable by others dropbear[149]: Password auth succeeded for 'root' from 192.168.127.35:41566 On my system, /root was 770. Changing to 700 fixed the issue. Having /root 700 is a good idea, anyway. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/skeleton: remove /etc/hostnameGravatar Peter Korsgaard2013-06-191-1/+0
| | | | | | | | | | | We already provide BR2_TARGET_GENERIC_HOSTNAME to set /etc/hostname, so a default /etc/hostname file isn't needed. More importantly, if the user has explictly set BR2_TARGET_GENERIC_HOSTNAME to the empty string, we would still end up with a /etc/hostname containing 'buildroot' which is unlikely to be what the user wanted. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/device-table: do not set /home/default stgidGravatar Yann E. MORIN2013-05-301-1/+1
| | | | | | | | | Currently, /home/default is mode 2755 which means it is setgid. Since /home/default is not group-writable, it is useless. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* skeleton: add default login port to /etc/securettyGravatar Tzu-Jung Lee2013-05-261-0/+8
| | | | | | | | | | | | | | | | | | We ran into a "Login incorrect" problem when running the same rootfs image across platforms with different loging ports ttyS0/1/2/3. Simply assignning "console" to BR2_TARGET_GENERIC_GETTY_PORT, which in turn modifies the /etc/inittab, is not enough because the "console" device was missing in the /etc/securetty. While current securetty has enumerated a lot of ttys, this patch should save some efforts to enumerate more. [Peter: guard with single quotes] Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: remove trailing tabs in Config.in fileGravatar Thomas Petazzoni2013-04-291-8/+8
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/securetty: Add ttyPS[0-1]Gravatar Soren Brinkmann2013-04-111-0/+2
| | | | | | | Adding ttyPS0 and ttyPS1 to securetty for Zynq. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Adjust prompt for the post-build scripts optionGravatar Thomas Petazzoni2013-02-081-1/+1
| | | | | | | | | | Since the post-image config option uses the plural for "Custom scripts", do the same for the post-build config option, for consistency. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add a post-image script mechanismGravatar Thomas Petazzoni2013-02-081-0/+18
| | | | | | | | | | | | | | | | | | | | Just like we have a post-build script mechanism that gets executed after the build of all packages but before the creation of the filesystem images, let's introduce a post-image script mechanism, that gets executed once all filesystem images have been generated. This can for example be used to call a tool building a firmware image from different images generated by Buildroot, or automatically extract the tarball root filesystem image into some location exported by NFS, or any other custom action. [Peter: fix image script check] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target/generic: add filesystem overlay optionGravatar Arnout Vandecappelle (Essensium/Mind)2013-02-051-0/+11
| | | | | | | | | | | The filesystem overlay is a tree that is copied over the target fs after building everything - which is currently usually done in the post-build script. [Peter: don't ignore missing directories] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>