summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files
Commit message (Collapse)AuthorAgeFilesLines
* base-files: remove the unnecessary /media/xxx directoriesChen Qi2013-07-022-7/+1
| | | | | | | | | | | | | | | | | | | | A few directories under /media were created by default, /media/card, /media/ram, /media/realroot, etc. These directories actually have no real usage now, thus removing them. The /media/ram entry in the fstab is also removed, as mounting a tmpfs over /media/ram in our system brings no benefit. Note that a duplicate '/mnt' entry in dirs755 are also removed. [Yocto #4774] (From OE-Core rev: 458e76e470966d759067b2f6e6f00fa75a2963f3) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: create /usr/lib/locale dirRoy.Li2013-06-251-1/+2
| | | | | | | | | | Lsbtest shows that /usr/lib/locale dir is lost, so create it (From OE-Core rev: 6fb6934a590e5ecda864183c0be83e1b59fec8c7) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: add /run directory from FHS 3 draft specificationJonathan Liu2013-05-292-5/+6
| | | | | | | | | | | | | | | | | | | | This adds the /run directory from the Filesystem Hierarchy Standard 3.0 Draft [1] and refactors the filesystem as follows: - Remove creation of /var/volatile/run - Remove creation of /var/volatile/lock - Remove symbolic link from /var/run to /var/volatile/run - Remove symbolic link from /var/lock to /var/volatile/lock - Add symbolic link from /var/run to /run - Add symbolic link from /var/lock -> /run/lock - Add /run to /etc/fstab for sysvinit compatibility [1] http://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData (From OE-Core rev: 0e326280a15b0f2c4ef2ef4ec441f63f55b75873) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "base-files: add fstab for systemd based systems"Andreas Oberritter2013-03-262-15/+1
| | | | | | | | | | | | | | | | | For hybrid systemd/sysvinit builds, only one fstab can be used. The default fstab used by sysvinit should work fine with systemd. Since virtually every machine will ship its own fstab in its bsp layer, the bsp layer may decide how to override the fstab based on distro features. This reverts commit 77bbb839ba25b974a538b90d346b454ccd5deefd. (From OE-Core rev: e9352e8a43639564af0a97f5e8a642e0989b0256) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: fix 'dash' expanding '\n'Javier Viguera2013-02-251-1/+1
| | | | | | | | | | | | Dash's 'echo' command expands '\n' by default, so the '\n' is not included in the '/etc/issue' file. Use 'printf' for portability between different shells. (From OE-Core rev: 94c9ced84aa201e808e46e129bf14f328ff5f3e4) Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: remove /var/cache from volatilesLaurentiu Palcu2013-02-061-2/+2
| | | | | | | | | | | Having the cache in tmpfs implies cache regeneration after every reboot. For an embedded device this might not be very efficient. So, it is better for the cache to be persistent between reboots. (From OE-Core rev: 7152ba27026265ba108caf4437638093f5897ec8) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: add fstab for systemd based systemsMartin Donnelly2013-01-202-1/+15
| | | | | | | | | | | | | The default fstab has entries which are not necessary in systemd based systems so add a simpler default in this case. (From OE-Core rev: 77bbb839ba25b974a538b90d346b454ccd5deefd) Signed-off-by: Martin Donnelly <martin.donnelly@ge.com> Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: Remove the redundant "/"Lei Yang2013-01-071-2/+2
| | | | | | | | | | I'm working on my virt-test, when I check this file find it has redundant "/" (From OE-Core rev: f67c0af055b7817f1bb931c98f22f1e3b540b10f) Signed-off-by: Lei Yang <lei.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: use dynamic root home directoryKang Kai2012-12-262-2/+3
| | | | | | | | | | Use var ROOT_HOME to configure root home directory dynamically. (From OE-Core rev: 341da5b6e46e0884d60e9462d1306d525fa99b94) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace "echo -e" with "printf" to have the same behavior in dash or bashAndrei Gherzan2012-09-201-4/+4
| | | | | | | | | | | | | | | | | | | | oe-core removed the prerequisite to have sh as bash. POSIX doesn't define any options and furthermore allows 'echo -e' to be the default behavior. This means that in dash 'echo -e' will actually print '-e' and interpret backslashes by default. We use instead 'printf' builtin command with or without '\n' to simulate 'echo -e' or 'echo -n'. 'printf' needs format while 'echo' can be used without any arguments. So 'echo >' was replaced by 'printf "" >'. 'echo' without '-n' flag adds a new line by default so to keep the same behavior of two new lines while using 'echo "\n"', 'printf "\n\n"' is used. [YOCTO #3138] (From OE-Core rev: a19880ad10ccb5d7d909dcf9de5c3dc58a0ebcd3) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: provide a mechanism to skip creation of the hostname fileMark Asselstine2012-09-121-6/+8
| | | | | | | | | | | | | | | | The existence of a /etc/hostname file causes any hostname provided on the kernel command line or via dhcp to be overwritten by the initscripts 'init.d/hostname.sh'. This change allows you to set a value of "" for 'hostname' which will skip the creation of the /etc/hostname file by the base-files package. (From OE-Core rev: 5fd3503d4a438d126f44fe8118e9ea465e7699c2) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: filesystems: fix mount orderGary Thomas2012-01-062-5/+6
| | | | | | | | | | | | | | | | | | | | This changes the order that file system [types] are tried when using 'mount' in busybox when the file system type is not explictly specified. The pervious ordering is incorrect in that less capable file system types are tried first, e.g. ext2 before ext3, which will cause an ext3 file system to be mounted as ext2, disabling some of the ext3 features such as journaling. The change also moves infrequently used file system types to the end as checking for them is just a waste of effort in most cases. The list now also includes ext4. [RP: Add PR bump, unbreak patch application] (From OE-Core rev: fff18970706913e7fd7f4a119d798dddb44b388a) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* OECore license fixes: meta/*Elizabeth Flanagan2011-12-088-2398/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a quick audit of only the most obviously wrong licenses found within OECore. These fixes fall into four areas: - LICENSE field had incorrect format so that the parser choked - LICENSE field has a license with no version - LICENSE field was actually incorrect - LICENSE field has an imaginary license that didn't exist This fixes most of the LICENSE warnings thrown, along with my prior commit adding additional licenses to common-licenses and additional SPDXLICENSEMAP entries. HOWEVER..... there is much to be done on the license front. For a list of recipes with licenses that need obvious fixing see: https://wiki.yoctoproject.org/wiki/License_Audit That said, I would suggest another license audit as I've found enough inconsistencies. A good suggestion is when in doubt, look at how openSuse or Gentoo or Debian license the package. (From OE-Core rev: 3083dd70b3a9fa01fcc3cf00373b05502505996e) Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Drop PRIORITY variableRichard Purdie2011-07-011-1/+0
| | | | | | | | | | | | | | | | As discussed on the mailing list, this variable isn't useful and if wanted would be better implemented by distros using pn-X overrides. This patch executes: find . -regex ".*\.\(bb\|inc\)$" | xargs sed -i '/^PRIORITY = ".*"$/d' against the tree removing the referenced. Thanks to Phil Blundell for the command. (From OE-Core rev: d122343362669c683acc4af295971a62cbc823fc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: add btrfs to /etc/filesystemsNitin A Kamble2011-06-302-1/+2
| | | | | | | (From OE-Core rev: 715aca9d73c5c351d2230d46892e435d43f19556) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: Inherit toolchain dependencies as a compiler isn't usedRichard Purdie2011-06-131-0/+2
|
* Remove distro-specific metadata for distros not in oe-corePaul Eggleton2011-05-051-29/+0
| | | | | | | (From OE-Core rev: ea2cd4b8e9bc013a007fe2a1a605ecb59db5a896) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove machine-specific metadata for machines no longer in oe-corePaul Eggleton2011-05-0518-164/+1
| | | | | | | (From OE-Core rev: 72567733033347b662d9baa07432985fd2da3efa) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-lsb override to linuxstdbaseRichard Purdie2011-04-211-1/+1
| | | | | | (From OE-Core rev: 73a227a738da17229baac142ccd889c7929402ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: Remove sysctl.conf file. This is now provided by the procpc recipe.Richard Purdie2011-03-242-31/+0
| | | | | | | | | | The base-files version is horribly outdated too. [YOCTO #924] (From OE-Core rev: f61df1f1e4a191ed3dd3d71aa78a479c615b14d1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: remove ending colon from default $PATH for root userKevin Tian2011-01-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now the PATH for root user defined in a problematic way PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin: from eglibc: /* Two adjacent colons, or a colon at the beginning or the end of `PATH' means to search the current directory. */ that means current directory is always searched as the last path, which could generate undesired behavior. One example is found in LTP cron_deny01 test, which always complains "sh: cron_deny01 not found" cron_deny01 is a shell script which setups the initial test preparation and then invokes itself for real test under a different user: su $TEST_USER1 -c "$0" 'su' doesn't inherit PATH into the sub-shell, and thus $0 has to be an absolute path to have right script found. ltp appends the path of cron_deny01 to $PATH before running the test: export PATH="${PATH}:${LTPROOT}/testcases/bin" In ideal way "${LTPROOT}/testcases/bin/cron_deny01" is found and becomes $0, which works well. However due to the ending colon in original PATH: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin::${LTPROOT}/testcases/bin $0 becomes 'cron_deny01' w/o leading path which makes sub-shell under 'su' failed to locate cron_deny01. remove ending colon then fixes this problem. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* base-files: Add to make some directories needed by LSB.Jingdong Lu2011-01-251-1/+17
| | | | | | LSB will check some directories,eg, "/usr/local/" and need to make them for LSB test. Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com>
* base-files:Add license checksum to bb fileMei Lei2010-12-021-1/+1
| | | | | | Add GPL-2 file checksum to bb file Signed-off-by: Mei Lei <lei.mei@intel.com>
* base-files: Allow a basic issue file to be extended by the code, following ↵Richard Purdie2010-11-023-10/+3
| | | | | | the method now used by OE Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base-files: Allow issue and hostname generation to be overriddenRichard Purdie2010-11-021-22/+27
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* recipes-core: Cleanup package descriptions and summariesMark Hatle2010-10-111-1/+2
| | | | | | | | | [BUGID #281] Evaluate and update each package in recipes-core to ensure they have a consistent summary and description. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* Major layout change to the packages directoryRichard Purdie2010-08-2741-0/+3252
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>