summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* typo fixesopenrc-0.11.6William Hubbs2012-11-30
|
* localmount: only skip unmounting /usr if it was premountedWilliam Hubbs2012-11-29
| | | | | | | | | | Add a test when localmount is started to determine if /usr is mounted from inside an initramfs for Linux systems. If it is not, we can unmount it when localmount stops. On *bsd systems, we always unmount /usr if it is separate. Reported-by: ryao@gentoo.org
* Tmpfiles: create and delete entries once in the boot runlevel.William Hubbs2012-10-31
| | | | | | | | | | | | | | | | Initially, we were creating tmpfiles entries in the sysinit runlevel and again in the boot runlevel. Systemd runs the --create and --remove options in one service called systemd-tmpfiles-setup after the local file systems are mounted. Now we have a service called tmpfiles.setup which emulates this. This also closes the bug mentioned below, since we were originally writing to files that were on read-only file systems and that were not available. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 439012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439012
* netmount: drop need net from dependenciesWilliam Hubbs2012-10-28
| | | | | | Reported-by: <mattsch@gmail.com> X-Gentoo-Bug: 439658 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439658
* oldnet: make the default carrier timeout 0William Hubbs2012-10-22
| | | | | | | | | Some types of interfaces do not have a carrier, so it doesn't make sense to automatically wait for one. Reported-by: <rose@rz.uni-potsdam.de> X-Gentoo-Bug: 438970 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438970
* tmfiles: change need dev to use dev.William Hubbs2012-10-19
| | | | | This is being changed to use for the reason I stated in the previous commit. There is no guarantee that someone is using a device manager.
* devfs: Remove references to specific device managersWilliam Hubbs2012-10-19
| | | | | | | | | | | | | | | There were references in the devfs script to mdev, udev and udev-mount. These all provide the virtuals dev and dev-mount; that is how we should refer to them. I believe in the discussion I had with Tony and Robin about this, we were going to change the "use" line to "need". However, after thinking that over, I'm not comfortable doing so because someone could be running a static /dev with no device manager. Reported-by: <tokiclover@gmail.com> X-Gentoo-Bug: 438932 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438932
* Fix bashism in tmpfilesd scriptsWilliam Hubbs2012-10-19
| | | | Reported-by: <pesa@gentoo.org>
* Oldnet: the loopback interface does not need sysfsWilliam Hubbs2012-10-16
|
* Migrate /var/run and /var/lock to symlinksWilliam Hubbs2012-10-16
| | | | | | Now that we have full support for tmpfiles.d in OpenRC, we can migrate /var/run and /var/lock to symbolic links to /run and /run/lock respectively.
* Add Vim modelineChristian Ruppert2012-10-16
|
* sysfs: add -lxc keywordWilliam Hubbs2012-10-02
| | | | | | | | The sysfs filesystem should not be mounted inside a linux container. Reported-by: permeakra@gmail.com X-Gentoo-Bug: 425790 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=425790
* dmesg should not run in a linux containerWilliam Hubbs2012-10-02
| | | | | | reported-by: <Walter@pratyeka.org> X-Gentoo-Bug: 436266 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=436266
* tmpfiles.d init.d scriptsRobin H. Johnson2012-09-26
| | | | | | | | | | | | Now that the tmpfiles.d code is more tested, actually call it from init.d. It assumes that /run is already available when it runs. Please note it runs TWICE. - During sysinit, ideally just after /dev/shm is created, but before udev has started. After udev is also acceptable, but not ideal. - During boot, ideally just after localmount has completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/devfs: Run after (u)dev-mount, before udev/mdevRobin H. Johnson2012-09-26
| | | | | | | | | | | Using the new dev-mount virtual, with udev-mount included until new udev version is rolled out, we run devfs earlier now, before udev/mdev. It only needs (u)dev-mount before it, so that /dev is mounted. This opens the way for tmpfiles.d, which needs to be sandwiched in the middle. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Add -lxc keyword to urandom scriptWilliam Hubbs2012-09-26
| | | | | | | | | Urandom should not run in lxc containers since it is provided by the host. Reported-by: <walter@pratyeka.org> X-Gentoo-Bug: 436270 X-Gentoo-Bug-URL: http://bugs.gentoo.org/436270
* netmount: do not handle NFS mountsWilliam Hubbs2012-09-15
| | | | | | | | | | Since nfs and nfs4 file systems require extra daemons to be running on the client to function properly, netmount should not try to handle these file systems. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 427996 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=427996
* netmount: add checks for rpc.idmapd for nfs4 filesystemsWilliam Hubbs2012-09-10
| | | | | | Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 427996 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=427996
* dmesg: add -prefix keywordWilliam Hubbs2012-09-09
| | | | | | Dmesg should not run on prefix systems. Reported-by: <heroxbd@gentoo.org>
* savecache: make sure $RC_LIBEXECDIR is writableWilliam Hubbs2012-09-07
| | | | | | | | | This is needed in case of a read-only root filesystem such as a diskless client. Reported-by: <walter@pratyeka.org> X-Gentoo-Bug: 430382 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=430382
* do not provide a virtual for the loopbackWilliam Hubbs2012-08-25
| | | | | The loopback interface is active on all systems, so there is no need to provide a virtual for it.
* newnet: provide net if configuring more than the loopback interfaceWilliam Hubbs2012-08-24
|
* Use do_umount's return value instead of eoutdent's.Christian Ruppert2012-08-18
|
* swapfiles: make sure /proc/swaps existsWilliam Hubbs2012-08-17
| | | | | | | | | If CONFIG_SWAP is turned off in the kernel, this file may not exist. In that case, we should not try to read from it. reported-by: <walter@pratyeka.org> X-Gentoo-Bug: 430378 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=430378
* Bring Back prefix supportWilliam Hubbs2012-07-26
| | | | | We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
* remove unnecessary header lineWilliam Hubbs2012-07-15
|
* small style changes to encswapWilliam Hubbs2012-07-15
| | | | | This drops some unnecessary continue statements and changes command command substitution to use $() instead of ``.
* Fix savecore init script to execute after dumpon, but before encswapRichard Yao2012-07-15
| | | | | This ensures that any kernel crash dumps are available when savecore runs. It also prevents encswap from corrupting them.
* Import encswap init script from FreeBSDRichard Yao2012-07-15
| | | | | The FreeBSD encswap init script has been adapted to function in OpenRC. It should function identically to its FreeBSD counterpart.
* fix the upstream default network stackWilliam Hubbs2012-07-10
| | | | | | | | The OpenRC upstream default network stack was changed, but there was no reason to change it. Now since we have the MKNET build switch, it is easy for the gentoo ebuild to install oldnet by default. The upstream default is newnet.
* add the MKNET variable to select a network stackWilliam Hubbs2012-07-10
| | | | | | | | The MKNET variable can be used to select the network stack you want to build and install with OpenRC. The current default is the gentoo "oldnet" stack. If you want to install the OpenRC newnet stack, use MKNET=newnet on the make command line.
* Revert "Deprecate the network and staticroute scripts"William Hubbs2012-07-08
| | | | | | | This reverts commit 5994e55937cbbb71b1c22ad829b77a1bcd8c3793. There are situations where these scripts can be useful, so I am bringing them back. Also, I want to start discussions about simplifying the OpenRC network stack.
* cgroups: allow users to turn off creation of controller cgroupsWilliam Hubbs2012-07-03
| | | | | | | | | This adds a switch to not create the one-cgroup-per-controller setup of cgroups. reported-by: davidweb@klaftenegger.de X-Gentoo-Bug: 423317 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=423317
* termencoding should not run on lxcWilliam Hubbs2012-05-27
| | | | reported-by: Alexey Shvetsov <alexxy@gentoo.org>
* do not umount /usr on linux systemsWilliam Hubbs2012-05-13
| | | | | | | | | We can't really umount /usr on linux systems because /usr is a special case if it is a separate filesystem which is handled by an initramfs. reported-by: tamiko+GENTOO@kyomu.43-1.org X-Gentoo-Bug: 415523 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=415523
* Do not try to remount /run read onlyAlexey Shvetsov2012-05-02
| | | | | On a diskless system, doing this causes the system to lock up during shutdown.
* init.d/procfs: posix compatibility fixSergei Trofimovich2012-04-16
| | | | | | | | | | | | | | | | | I've noticed in at boot: # /etc/init.d/procfs restart procfs | * WARNING: you are stopping a boot service procfs |[: 308: unexpected operator Which calls $ /bin/dash -c '[ "$RC_SYS" == "OPENVZ" ] && echo "ovz" || echo "nope"' [: 1: unexpected operator nope Fixed by using '='. X-Gentoo-Bug: 412237 x-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=412237
* network scripts need sysfs on linux systemsWilliam Hubbs2012-04-03
| | | | | Adjust the previous commit so that on linux systems the network scripts need sysfs.
* init.d/fsck: only check local file systemsWilliam Hubbs2012-03-29
| | | | | | | | | | | On linux systems, fsck was not taking into account which filesystems were local or remote. This commit adds the -t option, with an appropriate value, to the fsck call so that remote file systems are not checked. reported-by: Vladimir Berezhnoy <non7top@gmail.com> X-Gentoo-Bug: 408363 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=408363
* Add -lxc keyword to sysctl script for linux systemsWilliam Hubbs2012-03-26
| | | | | | Kernel parameters should not be set from inside a lxc guest. Reported-by: Piotr Karbowski <piotr.karbowski@gmail.com>
* localmount: Only unmount local filesystems if we are shutting downWilliam Hubbs2012-03-25
| | | | | | | | | Make the stop function in localmount only unmount file systems when the system is going down. reported-by: Alexey Prokopchuk <alexpro@homelan.lg.ua> X-Gentoo-Bug: 407167 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=407167
* sysctl: use @SYSCONFDIR@ in the scripts instead of hard coding /etcWilliam Hubbs2012-03-24
|
* Allow files in sysctl.d to override sysctl.confWilliam Hubbs2012-03-24
| | | | | | reported-by: Peter Gantner (a.k.a. nephros) <gentoo@nephros.org> X-Gentoo-Bug: 406631 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406631
* init.d/sysctl.Linux: do not use sysctl -qDiego Elio Pettenò2012-03-24
| | | | | | | | | | | | | The -q option is not implemented by BusyBox, so instead of using that, make it so that the standard error is caught, but standard output is thrown away. Note: the ordered behaviour of redirection is part of POSIX so we should be on the safe side with this change, as first we duplicate the output descriptor to be used as stderr, then we change the output descriptor to point to NULL. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* Remove prefix supportopenrc-0.9.9William Hubbs2012-02-21
| | | | | I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
* Revert "Revert "swap: go back to using swapon for Linux systems""William Hubbs2012-02-20
| | | | | | This reverts commit 06d67017850e106f14d8948003027612253b143a. After researching this further, we do need this commit. The other issue is a bug in fstabinfo which will also need to be fixed.
* update ignore patternsWilliam Hubbs2012-02-20
|
* Revert "swap: go back to using swapon for Linux systems"William Hubbs2012-02-20
| | | | | | This reverts commit 297720787f914ca34f2d04c66980c18c57700865. robbat2 tells me there is a better way to fix this.
* swap: go back to using swapon for Linux systemsWilliam Hubbs2012-02-20
| | | | | | | | | | | | | There are several reasons for going back to this: - fstabinfo doesn't work with labels in fstab - when a device is passed to swapon individually, the swap priority from fstab is not honored. - We also add the -e option to only activate available swap devices. reported-by: Duncan <1i5t5.duncan@cox.net> X-Gentoo-Bug: 405021 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=405021
* net: add deprecation warning for old style net dependency variablesWilliam Hubbs2012-02-18
|