summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit
Commit message (Collapse)AuthorAgeFilesLines
* sysvinit: Include libgen.h for basename APIKhem Raj2023-12-131-0/+38
| | | | | | | | | | This fixes build with latest musl which drops basename declaration API from string.h (From OE-Core rev: 63732c7accf802aab106a85d7d3852a689d9beaf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: send install.patch upstreamAlexander Kanavin2022-09-021-1/+1
| | | | | | | | (From OE-Core rev: 01ebe11786b5e01562289a0d51deff1bea89405c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: Fix mount.h conflicts seen with glibc 2.36+Khem Raj2022-08-121-0/+17
| | | | | | | | (From OE-Core rev: 938e6452974e0700f2fc2f070c76484aec05a910) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: update 3.02 -> 3.04Alexander Kanavin2022-05-051-28/+0
| | | | | | | | (From OE-Core rev: 579cadce9f60e71bd295153476e76f24466a2d83) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: upgrade 3.01 -> 3.02wangmy2022-04-192-5/+33
| | | | | | | | | | | | | | pidof-add-m-option.patch refreshed for new version. Add 0001-Fixed-compile-error-on-GNU-Hurd.patch to fix compile error on GNU Hurd due to missing MAX_PATH definition. (From OE-Core rev: cd75cb56ef30d68f82ec7406f3529afd163e7f92) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: upgrade 3.00 -> 3.01wangmy2021-12-211-16/+16
| | | | | | | | | | | | | | | | | refresh pidof-add-m-option.patch Changelog: ========== * Default to showing processes in the uninterruptable state (D). The -z flag no longer affects whether processes in D state are shown. The -z flag does still toggle whether zombie (Z) processes are shown. * Removed unnecessary check which is always true from init tab parsing. (From OE-Core rev: 5b5c1cd43923e552ae6bcfc50f1766981c44ae7b) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* patches: correct whitespace/spelling for Upstream-Status tagsAlexander Kanavin2021-11-212-2/+2
| | | | | | | (From OE-Core rev: c613ca14c35a5d1782c79a25b83875cbfa2b952b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* psplash (sysvinit): add textual updatesTrevor Woerner2021-01-052-0/+5
| | | | | | | | | | | | | | | | | | | | | | The psplash program contains a hidden text box immediately above the progress bar. Any text sent via a "MSG" command through psplash's fifo will be displayed, centred, above the progress bar. Add the ability to show which startup script is currently running, in sync with updates to the progress bar. If a startup script takes a bit longer than others and the progress bar stops momentarily, this allows the user to know which script is responsible. This feature is added with a knob, default off, for enabling or disabling this feature. The knob is in the form of a PACKAGECONFIG against the sysvinit recipe: psplash-text-updates NOTE: this knob can be changed in the filesystem at runtime by editing /etc/default/rcS regardless of how it is set in the build. (From OE-Core rev: 6a48631e24341895f13029fb7c69dd67031f53c1) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* psplash: fix working on first boot (sysvinit)Trevor Woerner2021-01-052-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The psplash program has a mechanism for showing updates graphically in the form of a progress bar. The program is told when and how much to fill the progress bar via text messages sent through a fifo. If the fifo doesn't exist when the psplash program starts, it tries to create it. If the fifo doesn't exist or can't be created, the psplash program will refuse to run. In various circumstances when a system is booted for the very first time, the filesystem is mounted, initially, read-only. As a result the psplash program is not able to run. On systems where the root filesystem is not meant to be read-only, it will eventually be mounted read-write. Therefore the psplash program can run on shutdown, and all subsequent boots. Only the first boot is affected. If a fifo is created and included in the filesystem as part of the recipe, then filesystems that are meant to be read-only will have psplash work, as well as the cases where (on first boot) a read-write filesystem is initially mounted read-only. NOTE: this is only an issue with sysvinit, and non-qemu machines. systemd-based systems don't suffer from this first-boot issue, and neither do the qemu machines. NOTE 2: when psplash is done, it removes the fifo. Therefore the fifo used for communicating with psplash doesn't hang around unnecessarily in the filesystem. (From OE-Core rev: d20978f9bce3caf473f5b4f55d645dbeabc1642d) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* PSPLASH_FIFO_DIR: refactorTrevor Woerner2021-01-052-2/+5
| | | | | | | | | | | Add an entry for the psplash fifo directory to /etc/default/rcS and have the pieces of code that need it source it from there rather than duplicating the definition in multiple places throughout the code. (From OE-Core rev: dc4065b6f101e6418301e0cb8d73ae3a1b2bdfb2) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rcS: Define identifier for init system usedKhem Raj2020-12-201-0/+3
| | | | | | | | | | | This will help in defining init system specific portions of initscripts which are shared (From OE-Core rev: 12380bccce7b87b755d1e24620c397641e88f656) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Sinan Kaya <okaya@kernel.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: remove bashism to be compatible with dashFedor Ross2020-11-241-1/+1
| | | | | | | | | | Replace the equality operator '==' with '=' inside of '[]' to be compatible with bash and dash. (From OE-Core rev: b7f0ec6eafb35117eaf4eeef281162080f0ca79a) Signed-off-by: Fedor Ross <fedor.ross@ifm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit rc: Use PSPLASH_FIFO_DIR for progress fifoMichael Gloff2020-09-021-6/+3
| | | | | | | | | | | | psplash expects the fifo to be in /run or specified by PSPLASH_FIFO_DIR. This patch allows psplash to quit normally. Also, fix the work around of using echo directly into the fifo and use psplash-write. (From OE-Core rev: 2b48bbd0a8de17df74d1fae12b5e4eb3c2c0fb90) Signed-off-by: Michael Gloff <mgloff@emacinc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: update 2.96 -> 2.97Alexander Kanavin2020-08-022-10/+13
| | | | | | | (From OE-Core rev: 84f56d6beffe830866d56be94149b747b04ea54d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: update 2.88dsf -> 2.96Alexander Kanavin2019-12-096-169/+124
| | | | | | | | | | | | | Remove 0001-This-fixes-an-issue-that-clang-reports-about-mutlipl.patch, the problem has been fixed upstream. Rebase the other patches. License-Update: copyright years (From OE-Core rev: 5372e1acdd68367e64d13e19d1beb2d7b3e3c224) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: Include sys/sysmacros.h for major/minor definitions on musl tooKhem Raj2019-07-231-60/+39
| | | | | | | | | | | | Fixes musl issue implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration] which eventually ends up with a linker error (From OE-Core rev: 6b603924e50a5694421b9142494315799422928d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: consolidate patchesRoss Burton2019-03-294-0/+368
| | | | | | | (From OE-Core rev: b89a48da4bc25c769f8dbc15d5e8596258cda472) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: Fix build with muslKhem Raj2015-12-121-0/+78
| | | | | | | | (From OE-Core rev: 8688f08e429dfbc758315f9f07933693269e7c5b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: Fix makefile bug found with clangKhem Raj2015-08-301-0/+52
| | | | | | | | | | | | | | This is due to specifying .h files on linker cmdline clang driver is picky about it, and its not entirely correct either (From OE-Core rev: de45b5e68faeefe3d68818d456f280b98f397634) (From OE-Core rev: 44dcee60e343944199ee766ec0886931ff2b0699) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: allow stack size configuration from rcSScot Salmon2014-08-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | For certain swap/overcommit settings (e.g. when overcommit is disabled on a real-time system), we need to limit the stack size used by initscripts. When the STACK_SIZE environment variable is set (usually in /etc/default/rcS), ulimit the stack size to the value specified. Make the stack size ulimit a soft limit, which allows the user to increase the stack size where required without having to run the respective application as root. (From OE-Core rev: 0b5db16929de7668174e74e428f3e4e90e76e1d8) Signed-off-by: Scot Salmon <scot.salmon@ni.com> Signed-off-by: Gratian Crisan <gratian.crisan@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Acked-by: Rich Tollerton <rich.tollerton@ni.com> Acked-by: Brad Mouring <brad.mouring@ni.com> Acked-by: Bill Pittman <bill.pittman@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: bootlogd: ensure /var/log/boot is created in volatilesRichard Tollerton2014-07-231-0/+1
| | | | | | | | | | | | bootlogd does not write to /var/log/boot if it does not exist, so if using the volatiles facility (presumed to mount /var/log under a tmpfs), ensure that /var/log/boot gets created. (From OE-Core rev: 283d109098358c06ff10daaf612e5a244691d7ac) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: bootlogd: Don't run savelog if it's not installedRichard Tollerton2014-07-231-2/+2
| | | | | | | | | | | | | | | | bootlogd's default log rotation code on stop requires `savelog`, which is in debianutils, which may not be installed. If it's not installed, don't try to perform the log rotation. That is: in the affected code block, `savelog` is what is responsible for creating "boot.0". When `savelog` doesn't exist, an error message gets printed on bootup to the effect of "mv: can't find boot.0". (From OE-Core rev: 5c22973e1bf76615bcf57984ac7a30cf7d0766df) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: bootlogd: Honor VERBOSERichard Tollerton2014-07-231-4/+6
| | | | | | | | | | | | The messages echoed when starting and stopping bootlogd are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled. (From OE-Core rev: 42f107513148aa6e9fd69d51e63a183c613114c0) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: fix the bootlogd init script headerRoy Li2014-04-051-7/+11
| | | | | | | | | | fix the bootlogd init script header, to make chkconfig be able to work on bootlogd (From OE-Core rev: d1a7e5dbaa1217b692b46e2756c318e5aaa34f9d) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: unmount the psplash lazyilySaul Wold2013-11-181-1/+1
| | | | | | | | | | | | | There is an race condition where psplash is not quite exited before the unmount occurs causing a umount: /mnt/.psplash: target is busy message to appear, it's ok to lazyily unmount and not get this message [YOCTO #5244] (From OE-Core rev: 9ded366084f22f48ef72aa22acf6a38982d16d97) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bootlogd: create log file if not presentChen Qi2013-11-081-2/+2
| | | | | | | | | | | | | | | | | Previously, our system had no boot log even if the bootlogd daemon was started correctly. The root cause is that the log file doesn't exist when starting the bootlogd. Add '-c' option to bootlogd so that it will create the boot log if it doesn't exist. [YOCTO #5273] (From OE-Core rev: 6059be3ab60b8ab463d438c47bb17553d184a790) 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>
* sysvinit: remove unused filesChen Qi2013-09-142-12/+0
| | | | | | | | | | | | | | | | The 'need' and 'provide' files are there for simpleinit compatability, according to the comments in these two files. However, we don't use simpleinit and there's even no simpleinit recipe in OE. Besides, these two files are not installed. This patch removes these two unused files. (From OE-Core rev: 05ac5627208c98007cd4c7aed9d76f179cd974a9) 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>
* sysvinit: add init.d/bootlogd status command for LSB complianceJackie Huang2013-08-261-1/+8
| | | | | | | | | (From OE-Core rev: 95180b966adb6ebe6451ab0e91187e7db93f22e4) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: rc: exit psplash correctlyChen Qi2013-03-271-1/+1
| | | | | | | | | | | | | | | | | | Previously, psplash didn't go away at system startup. The root cause is that rc checks the file '/etc/init.d/xserver-nodm' to determine whether to exit psplash manually. So even if xserver-nodm is not linked into runlevel 3, psplash doesn't exit. This patch fixes this problem by letting the rc script check the file '/etc/rc${runlevel}.d/S??xserver-nodm' to determine whether to exit psplash manually. [YOCTO #3904] (From OE-Core rev: 70b14f1c4181d820e56e67f4a5d921905094dc62) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: add ROOTFS_READ_ONLY variable to rcS-defaultChen Qi2013-02-061-0/+4
| | | | | | | | | | | | | | | | | | | This variable indicates whether the rootfs is intended to be read-only or not. Changing this value from 'no' to 'yes' on a currently running system with read-write rootfs and rebooting will give the user a working system with read-only rootfs. However, it is not suggested to change its value. Normally, if a read-only rootfs is required, we should build an image with 'read-only-rootfs' image feature. [YOCTO #3406] (From OE-Core rev: 0b4af5f3e6c92ae8194447b027202c1933f47dd9) 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>
* hwclock.sh: improve hwclock.sh script to use UTC variableChen Qi2012-11-021-2/+2
| | | | | | | | | | | | | | Make UTC variable in /etc/default/rcS has effect on hwclock.sh. This variable declares whether the Hardware Clock is kept in UTC or local time. Default its value to "yes" and change the comment. [YOCTO #3341] (From OE-Core rev: 2bda4bbda3f3033cfb324778ef88f2aedad4a83b) 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>
* sysvinit: use new update-alternativesMark Hatle2012-05-302-26/+0
| | | | | | | | | Also remove postinst and prerm which were not being used. (From OE-Core rev: 60fd9974e5c9a0576059ebded6de7b599f9574e5) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Various typoes fixed, all comments or output strings.Robert P. J. Day2012-03-261-1/+1
| | | | | | | | | Typoes fixed: "enviroment", "editted", "spliting", "scheulder". (From OE-Core rev: 17e981a857a51b0bec08c929e8539d36d83874b6) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: split inittab into it's own recipeKoen Kooi2011-06-091-30/+0
| | | | | | | | | Implements the improvements suggested in the original fix for [YOCTO #1131] (From OE-Core rev: e9cde6962d369fb620799d0370ea9dc7d6234d37) Signed-off-by: <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: add check for no X11 to disbale psplashSaul Wold2010-10-141-6/+6
| | | | | | | | | | Add a check to the rc script to check if the /etc/init.d/xserver-nodm script exists and is executable and not disable psplash if it is, otherwise disable pspalsh since we do not have X installed. Fixed [BUG #457] Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* Major layout change to the packages directoryRichard Purdie2010-08-279-0/+391
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>