summaryrefslogtreecommitdiffstats
path: root/fs
Commit message (Collapse)AuthorAgeFilesLines
* New top-level directory: systemThomas Petazzoni2012-11-0455-755/+0
| | | | | | | | | | | | | | | | | | | | | | This directory groups the following elements: * the default root filesystem skeleton * the default device tables * the Config.in options for system configuration (UART port for getty, system hostname, etc.) * the make rules to apply the system configuration options Even though the skeleton and device tables could have lived in fs/, it would have been strange to have the UART, system hostname and other related options into fs/. A new system/ directory makes more sense. As a consequence, this patch also removes target/Makefile.in, which has become useless in the process. [Peter: fixup TARGET_SKELETON settings / documentation to match] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: remove /etc/TZPeter Korsgaard2012-10-241-1/+0
| | | | | | | | Defaulting to UTC (which is what uClibc will default to when /etc/TZ is missing) seems more sensible than US Mountain Time Zone in the default rootfs skeleton. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* use portable printf instead of echo -e, needed for MacOS X buildhostWaldemar Brodkorb2012-10-061-2/+2
| | | | | | | | | echo -e is not a portable way to do this, better use printf. Works with MacOS X. Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add the www-data user group to the skeleton target filesystemspdawson@gmail.com2012-04-261-0/+1
| | | | | | | | The www-data user is defined in fs/skeleton/etc/passwd, with gid 33. But gid 33 is not present in the group file. Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix systemd failure with media devicesMaxime Ripard2012-04-201-0/+0
| | | | | Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove unused .fakeroot.* mechanismThomas Petazzoni2012-04-192-4/+0
| | | | | | | | | | | | | | | | | | | There used to be a mechanism using which packages could leave a .fakeroot.<something> file which could contain commands to be executed within the fakeroot environment. Since this mechanism is no longer used by any package, remove it from the common infrastructure. The latest user was nfs-utils, which used this mechanism to do the "make install" as root, since doing otherwise was not supported. But since 16e7b8255c82815126a2c502c3787d442d254a86, nfs-utils has been upgraded and converted to the package infrastructure, and this hack is no longer necessary. Another past user was the ltp-testsuite package, for the same reason, and since a72a670489547a3ca645ff7c3a0d9c3fb66eab51, the fakeroot hack is no longer needed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix systemd failure with lock filesMaxime Ripard2012-04-191-0/+1
| | | | | | | | | | | Systemd introduced a new policy described here: http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html Add the "lock" group to buildroot to allow systemd to set this in place at boot time Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Change the /etc/mtab symlink to use an absolute pathMaxime Ripard2012-03-191-1/+1
| | | | | | | | | | As systemd checks if /etc/mtab is a symlink to /proc/mount or /proc/self/mounts, we need to change it so that we can run systemd. http://cgit.freedesktop.org/systemd/tree/src/main.c#n1082 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove stray $ character from a bunch of init scriptsLuca Ceresoli2012-03-151-1/+1
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sh: Add additional ttySCsPhil Edworthy2012-03-111-0/+2
| | | | | | | There are a couple of Renesas SH devices with 8 serial ports used. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Introduce /run directoryYegor Yefremov2012-02-021-0/+1
| | | | | Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add support for package-declared devicesMaxime Ripard2012-02-011-0/+4
| | | | | | | | | | | Add a way for packages to declare files they need instead of relying only on device tables, which creates files no matter if the package is indeed enabled, as we can see for busybox. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Rework of shutdown policy in inittabMaxime Ripard2012-01-112-2/+28
| | | | | | | | | | | This commit follows commit ad501b66. Start up of the busybox logging daemons were moved to an init script but the shutdown were still performed in inittab. This commit moves the shutdown policy to an rcK script that calls the stop function of all the init scripts in a reversed order. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add ttyGS0 to securettyJean-Christophe PLAGNIOL-VILLARD2012-01-101-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: make /var/lib/misc a symlink to /tmpPeter Korsgaard2011-12-061-0/+1
| | | | | | | Similar to the other symlinks, so you can use E.G. dnsmasq with a read only rootfs. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* /etc/profile: read in /etc/profile.d/*.sh filesThomas De Schampheleire2011-10-281-0/+7
| | | | | | | | | | | For custom projects, it is more maintainable to add custom profile settings in a separate file, than directly in /etc/profile. This patch modifies /etc/profile to read in *.sh files from /etc/profile.d/, a technique commonly used in Linux distributions. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sh: Add ttySC* to securettyPhil Edworthy2011-10-281-0/+4
| | | | | Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Cleanup cramfs package declaration.Maxime Ripard2011-10-271-5/+1
| | | | | | | | Cramfs still passes the device table to mkcramfs, which is irrelevant now with fakeroot, remove this behaviour and the associated patch. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* securetty: update to add ttySC for sh4Gustavo Zacarias2011-10-261-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/initramfs: refactor with fs/cpioArnout Vandecappelle (Essensium/Mind)2011-09-274-240/+18
| | | | | | | | | | An initramfs is in fact the same as a cpio archive, but embedded in the kernel. So instead of duplicating the cpio infrastructure, we can simply build images/rootfs.cpio and link that into the kernel. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* cpio: fix boot with dynamic /devArnout Vandecappelle (Essensium/Mind)2011-09-272-5/+26
| | | | | | | | | | | | Devtmpfs doesn't get automounted by the kernel when an initramfs is used. Since cpio archives are used almost exclusively as an initramfs, the same fix should be applied to it as for the initramfs. Cfr. commit 424888e47431db738f5f9b3c6392435bfce7a842 and 10a130f91e5b947e2d2558443ff09b1686eac273. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs/init: make sure that 0, 1, 2 fds are availableThomas Petazzoni2011-08-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | As the kernel doesn't automatically mount devtmpfs when an initramfs is used, commit 424888e47431db738f5f9b3c6392435bfce7a842 has introduced a small wrapper script that mounts devtmpfs before starting the real init. Unfortunately, the problem is that in this case, the init process runs without any 0, 1 and 2 file descriptors, so none of the messages/errors printed by the various initialization scripts can be seen. This is due to the fact the init process relies on 0, 1 and 2 being opened by the kernel before init is started. However, as /dev/console isn't present on the filesystem at the time the kernel tries to open the console to create the 0, 1 and 2 file descriptors, the kernel fails on this and prints the famous "Warning: unable to open an initial console". The proposed workaround is to actually open 0, 1 and 2 to /dev/console in the wrapper script, right after mounting the devtmpfs filesystem, and before starting the real init. The "Warning" from the kernel is still shown, but at least the messages from the init scripts are visible. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* iso9660: fix build after linux package changePeter Korsgaard2011-07-271-1/+1
| | | | | | linux26 target is no more. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* System config: split static-dev device table setting into seperate optionPeter Korsgaard2011-07-251-1/+2
| | | | | | | | | | | | | As discussed here: http://lists.busybox.net/pipermail/buildroot/2011-May/043251.html Add BR2_ROOTFS_STATIC_DEVICE_TABLE for the extra device table file(s) to create device nodes in /dev, rather than complicated logic in BR2_ROOTFS_DEVICE_TABLE, making it complicated to move between static and dynamic modes. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: fix boot with dynamic /devPeter Korsgaard2011-07-202-2/+19
| | | | | | | | | | | Devtmpfs (which is used by devtmpfs/mdev/udev options) doesn't get automounted by the kernel when an initramfs is used, causing boot failures when a dynamic /dev is used. Fix it by adding a pre-init script to mount devtmpfs before running init. Reported-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sh: Fix Buildroot sh targets to match gnuconfig targetsPhil Edworthy2011-07-181-2/+2
| | | | | | | | | | | | | | sh2eb and sh2a_nofpueb gnuconfig targets are no longer supported in Buildroot. This patch replaces these Buildroot targets with sh2 and sh2a respectively, and adds sh4a targets as these are widely used. To build for devices without an fpu, the relevant toolchain flags will have to be specified. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* iso9660: fix build after af52661d (linux: rename LINUX26 to LINUX)Peter Korsgaard2011-07-181-1/+1
| | | | | | | | iso9660 used LINUX26_IMAGE_PATH, which got renamed. Adjust to match the new name. Reported-by: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: allow rootfs not to be remounted read-writeLuca Ceresoli2011-07-101-1/+1
| | | | | | | [Peter: prefix option with TARGET_GENERIC_] Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* skeleton: inittab: remove /var/log/messages log on tty3Peter Korsgaard2011-07-041-4/+0
| | | | | | | Hardcodes policy, is not critical, and people might not have tty3 (E.G. virtual consoles) available. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Rework the logging daemons startupMaxime Ripard2011-07-041-2/+0
| | | | | | | | | | | The logging mechanism startup being in inittab, it isn't easy to overcharge the default policy. With this patch, the startup of the syslog daemon is moved to an init.d script, that can easily be overwritten. [Peter: use install -D] Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Create and mount /dev/shmMaxime Ripard2011-07-032-0/+2
| | | | | | | | | The /dev/shm directory is neither created nor mounted as tmpfs as boot time. This will cause troubles when using named semaphores on the system. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Move rootfs content options under system configurationPeter Korsgaard2011-05-121-76/+1
| | | | | | | | | Instead of the current mix between system config and filesystem menus. At the same time rename 'Target filesystem options' menu to 'Filesystem images' as it now only contains options about image formats. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target/generic: only show getty port option if default skeleton is usedPeter Korsgaard2011-05-121-4/+0
| | | | | | | | The special marker in etc/inittab might not be present with a custom skeleton. At the same time make the option always active, remove the hardcoded tty1/tty2 gettys and reword the option description slightly. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Allow several device tables and split in two parts our device tableThomas Petazzoni2011-05-092-10/+20
| | | | | | | | | | | | | | This allows to have a device table for all directories/files and another device table for the device files themselves. Both are needed for static /dev, but only the first one is needed when devtmpfs/mdev/udev are used. We take this opportunity to move the documentation of the device table format in a common location, package/makedevs/README. [Peter: simplify code slightly, fix indentation] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Create menu entry to select device creation methodYegor Yefremov2011-05-091-6/+27
| | | | | | | | | | | | | | | | | | Four methods for the creation of device files in /dev are now proposed: - static method uses device table as before - devtmpfs method enables this feature in kernel - mdev method adds mdev starting script to the file system and selects mdev itself for installation - udev method selects udev for installation All dynamic methods are based on devtmpfs, so one doesn't need to care about /dev folder. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: add ftp user/groupPeter Korsgaard2011-04-224-0/+3
| | | | | | Needed by E.G. proftpd for the default (anonymous ftp) config. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* squashfs: re-add legacy lzma supportGustavo Zacarias2011-03-052-0/+7
| | | | | | | | | Readd legacy LZMA support since older patched kernels might be using it. Introduce an XZ target filesystem option for the new format. [Peter: add a seperate xz target for squashfs-target as well] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* squashfs: bump versionPeter Korsgaard2011-03-031-1/+1
| | | | | | | The EXTRA_CFLAGS patch is now upstream, but we need a fix for !gzip builds instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: mount /proc before remounting rwANDY KENNEDY2011-02-211-1/+1
| | | | | | | | inittab ordering causes mount to fail on remount,rw. inittab changed to mount /proc first. Signed-off-by: Andy Kennedy <Andy.Kennedy@AdTran.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/jffs2: remove BR2_JFFS2_TARGET_SREC optionPeter Korsgaard2011-01-142-14/+1
| | | | | | This kind of custom image conversion is better handled outside BR. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/ext2: remove redundant BR2_TARGET_ROOTFS_EXT2_SQUASH optionPeter Korsgaard2011-01-142-9/+0
| | | | | | | The generic fs handling does a chmod -R 0:0 $(TARGET_DIR), so there's no need for a specific option to enforce this when making an ext2fs image. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/tar: enable by defaultPeter Korsgaard2011-01-141-0/+1
| | | | | | | This way we'll get something in images/ by default, and hopefully people will be less likely to try to use target/ directly. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/ext2: don't enable by defaultPeter Korsgaard2011-01-141-1/+0
| | | | | | | | | It's pretty uncommon to use ext2fs on embedded systems, so don't enable it by default. Adjust defconfigs to match. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* ubifs: Add UBI image generation support.Julien Boibessot2011-01-113-0/+51
| | | | | | | | | | | | UBI images are generated from UBIFS one (with ubinize tool) and are used by bootloaders (eg U-Boot) to write UBIFS images directly on bare NAND FLASH (see http://www.linux-mtd.infradead.org/faq/ubi.html). [Peter: tweak help text] Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> Signed-off-by: Nicolas Colombain <nicolas.colombain@armadeus.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target skeleton: add audio groupGustavo Zacarias2011-01-111-0/+1
| | | | | | | | Add audio group to the target skeleton. Some multimedia applications based on alsa-lib need it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* etc/securetty: Add ttyAM for ep93xxH Hartley Sweeten2011-01-111-0/+3
| | | | | | | Allow root login on the Cirrus ep93xx ARM AMBA serial ports. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* genext2fs.sh: improve number of blocks calculationPeter Korsgaard2010-12-301-14/+11
| | | | | | | | | | | | | Closes #2929 Instead of just adding a fixed amount to the blocks used, try to estimate the real space needed according to the filesystem structure (bitmaps, inodes, blocks). The side effect of this is that we no longer significantly overestimate the size needed for small file systems. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* etc/securetty: Add ttyO0 to ttyO3 for omapGuillaume Gardet2010-12-301-0/+4
| | | | | | | | Recent kernels (2.6.37*) use a different name for OMAP serial ports. They are no longer called ttySx but ttyOx. Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add network scripting folders to fs/skeletonYegor Yefremov2010-12-164-0/+0
| | | | | | | | | | | | Those folders are currently created using makedevs according to the specifications in device_table.txt. However, as makedevs is no longer executed when dynamic device creation methods are selected (devtmpfs, udev, mdev), those folders must be created differently. We choose to put them directly into the default filesystem skeleton. Signed-off-by: Yegor Yefremov <yegor_sub1@visionsystems.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* busybox: move udhcp script from skeleton to packageLionel Landwerlin2010-12-131-39/+0
| | | | | | | | | Since udhcpc is part of busybox, it seems logical to move the udhcpc script from skeleton to busybox. [Peter: only install if not available in skeleton] Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>