summaryrefslogtreecommitdiffstats
path: root/package/sysvinit/inittab
Commit message (Collapse)AuthorAgeFilesLines
* sysvinit: add an inittab entry to activate swapCarlos Santos2018-06-121-1/+2
| | | | | | | | | | | | | | | There is a call to swapoff in the shutdown sequence, so call "swapon -a" on startup. As stated in the swapon man page, All devices marked as "swap" in /etc/fstab are made available, except for those with the "noauto" option. Devices that are already being used as swap are silently skipped. So even if the system has some init script to start/stop swap (e.g. from a rootfs ovelay) calling swapon/swapoff would be harmless. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysvinit: reduce number of mkdir calls in inittabCarlos Santos2018-06-121-2/+1
| | | | | | | | | | | | | | | The default sysvinit inittab does two separate mkdir calls to create /dev/pts and /dev/shm. Reduce this to call mkdir only once for both directories. This removes id "si3" but keeps ids "si4".."si9" intact rather than renumbering them. This would just increase the turmoil without any practical effect. Based on commit e9db8122fb, by Florian La Roche <F.LaRoche@pilz.de>. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysvinit: add /dev/std{in, out, err} symlinks to inittabJörg Krause2018-05-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some applications, e.g. bashs process subsitution feature, rely on the convention of `/dev/fd` being a symbolic link to `/proc/self/fd`. This symbolic link and his companions `/dev/std*` are created by (e)udev [1], but not by mdev, resulting in the following error when using the following expression: ``` bash: /dev/fd/62: No such file or directory ``` For the sake of simplicity, lets fix this by creating the symlinks in inittab. It is only really needed if eudev isn't used, but it doesn't really hurt to create them even if eudev will recreate them afterwards. Note, that we do not create the symlink `/dev/core` as `/proc/kcore` is not available on all platforms, e.g. ARM, and the feature is not much appreciated [2]. [1] https://github.com/gentoo/eudev/blob/8943501993322c59a6eb5be456b0d716aafff21e/src/shared/dev-setup.c#L35-L40 [2] https://lwn.net/Articles/45315/ [Peter: redirect errors to /dev/null for ro rootfs] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysvinit: update the inittab to support "single" from the kernelCharles Hardin2016-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | Closes #8911 When the kernel passes single in the command line, this translates into an init -s option that is suppose to drop into a shell after the sysinit and before the runlevel. So, in busybox this is hardcoded - but, in sysvinit using the sysinit action for the rcS means that it will always be executed even when trying to get into single user mode for repair. This change should run rcS in all of the expected runlevels 1-5 and should achieve the desired result compared to the busybox and still allow a single user shell to get started as expected before running rcS. Signed-off-by: Charles Hardin <ckhardin@exablox.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* inittab: disable reboot by ctrl-alt-dellothar felten2016-01-031-1/+1
| | | | | | | | | | | Most embedded systems do not have a keyboard. If a keyboard is attached afterwards (e.g. to an accessible USB host port) this allows the user to reboot the system by pressing Ctrl-Alt-Del, which might not be desired. Signed-off-by: lothar felten <felten@vaxnet.de> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysvinit/inittab: adjust shutdownGustavo Zacarias2014-11-201-11/+16
| | | | | | | | | | | | | | | | | The previous shutdown sequence was basically a no-op, it did't call rcK to stop anything and dumped users back into shell. So do the proper thing by calling rcK for levels 0 (halt) and 6 (reboot), then swapoff, then remount ro. After that call halt for 0 and reboot for 6. Also make 3 the default runlevel as in normal distributions, for all intents and purposes it changes nothing except aesthetics/convention. And make the labels a context sequence rather than just a short form of the actions which IMHO looks horrible. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/sysvinit: drop tty1/2Gustavo Zacarias2014-11-141-3/+0
| | | | | | | | We don't do it for busybox init so do the same for consistency here. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* system/inittab: update to fix bug #7442Gustavo Zacarias2014-10-251-1/+1
| | | | | | | | | | | | | | | | | | | Update inittabs (skeleton/busybox & sysvinit) to remove the trailing REMOUNT_ROOTFS_RW comment used as magic string in system/system.mk to enable/disable remounting the root filesystem rw or not since it affects sysvinit in doing so properly as reported in bug #7442. Instead update the sed expressions to match clean non-commented strings by searching for "-o remount,rw /" and checking that's the end of the line as well to avoid affecting possibly other remounts that a user can have in a custom inittab. Long-term the startup block of inittab should just move to a S00sysinit script or similar so that rcS can pick it up directly. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/sysvinit: don't start loggingGustavo Zacarias2014-10-121-7/+0
| | | | | | | | | | | | | Don't try to start logging from /etc/inittab because busybox installs a S01logging script that handles that and can lead to duplicate logging processes. Let's handle the logging in each package that provides it since we can get multiple variants in the future like syslog-ng that have different initialization routines. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* replace references to Busybox with BusyBoxSimon 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>
* sysvinit: install new cmds and fix inittabRyan Barnett2013-11-011-0/+1
| | | | | | | | | | | | | | | Adding support for sysvinit to install reboot, poweroff, and pidof commands available in /sbin. Fixes bug #6620 Removed uninstall commands since they aren't used. There is an error with sysvinit that will prevent the system from booting if "dshm::sysinit:/bin/mkdir -p /dev/shm" is not present in the inittab. Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* 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>
* sysvint: convert to gentargets and bump to 2.88Martin Banky2010-12-141-0/+31
Also, changed the site to Debian, to get the latest patches [ Thomas: add inittab compatible with sysvinit. Minor fixes. ] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud