summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* net/bonding: subsume functionality for NFS bootingRobin H. Johnson2012-10-11
| | | | | | | | | | | If the kernel is NFS-booting, it is critical that we don't down the slave interfaces when we activate the bond. To do so will break the root filesystem when networking is temporarily lost. Reported-by: Walter <walter@pratyeka.org> X-Gentoo-Bug: 428604 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=428604 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/{bridge,iproute2}: Stricter iproute2 ip link syntax & promisc handlingRobin H. Johnson2012-10-10
| | | | | | | | | | | | | The 'dev' argument is only optional for ethX devices, for others it is mandatory, so we should always include it. Also tweak when promisc mode is applied to bridges. Patches submitted by Denis Kaganovich <mahatma@bspu.unibel.by>. X-Gentoo-Bug: #431204 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=431204 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* checkpath: fix bool valuesWilliam Hubbs2012-10-09
| | | | | | Use true/false for bool values instead of 0/1. Reported-by: <vapier@gentoo.org>
* checkpath: change the owner/group only when requested to do soWilliam Hubbs2012-10-09
| | | | | | | | | Fix checkpath so that it only changes the owner/group if -o is on the command line. Reported-by: <flameeyes@gentoo.org> X-Gentoo-Bug: 437560 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=437560
* Fix default runlevel symlink pathsAndrew Gregory2012-10-05
| | | | | | | | | runlevels/Makefile currently uses ${PREFIX} when creating the initial runlevel symlinks, but the init files are installed to ${INITDIR}, which results in broken symlinks if ${SYSCONFDIR} is set to something other than ${PREFIX}/etc Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* Remove non-standard reboot option from inittabAndrew Gregory2012-10-05
| | | | | | | Gentoo adds a "-k" option to the reboot command in inittab. This is a Gentoo-specific option, so it is being removed. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* set the RC_UNAME environment variable when updating dependenciesWilliam Hubbs2012-10-04
| | | | | | | This is needed because the network script uses this variable in the depend() function but it wasn't exported when this was run. Reported-by: <aaly90@gmail.com>
* 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>
* sh/tmpfiles.sh: Improve dry-run mode.Robin H. Johnson2012-09-26
| | | | | | Dry-run with more detail is more useful this way. 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>
* runlevels: Include sysfs in the sysinit level.Robin H. Johnson2012-09-26
| | | | | | | | net.* and module loading require sysfs now, and if udev is not in use, it is not always loaded early enough, esp for net.lo. Force it to come up during sysinit instead. 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
* small runscript man page cleanupsWilliam Hubbs2012-09-25
|
* Drop restart_pre/restart_postWilliam Hubbs2012-09-25
| | | | | | | | By design, restart is hard coded to run stop followed by start along with all of the pre/post functions associated with them. Restart doesn't need its own pre/post functions since it is possible to make any function in an init script behave differently for a restart command by testing against the RC_CMD environment variable.
* Clarify how to handle restart processingWilliam Hubbs2012-09-23
| | | | | | | The Gentoo developer manual covers how to handle restarts in init scripts, but this was not officially covered in OpenRc's Documentation. This commit adds an example to the runscript man page that shows how this works.
* fix Makefile indentationWilliam Hubbs2012-09-23
|
* Add restart_pre/restart_post support, also document RC_CMDChristian Ruppert2012-09-22
|
* fix RC_SVCDIR on prefix systemsWilliam Hubbs2012-09-20
| | | | | | | | On prefix systems, RC_SVCDIR was being defined based on the host operating system. This is not correct because there will not be a /run directory in a prefix. This commit moves RC_SVCDIR on prefix systems to the same location as on non-Linux systems.
* 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
* Typo: emtpy -> emptyChristian Ruppert2012-09-14
| | | | | | Reported-by: Walter <walter@pratyeka.org> X-Gentoo-Bug: 430146 X-Gentoo-Bug-URL: https://bugs.gentoo.org/430146
* Silence the right get_pid() callChristian Ruppert2012-09-12
|
* Silence get_pid(), OpenRC will give the process some time to create the PID ↵Christian Ruppert2012-09-12
| | | | file and the first get__pid() call may fail.
* 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
* add RC_PREFIX environment variableWilliam Hubbs2012-09-09
| | | | | This will be used by init scripts which want to be able to run in a Gentoo Prefix installation. RC_PREFIX will contain the prefix offset.
* 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
* oldnet/iproute2.sh: fix carrier detectionWilliam Hubbs2012-09-07
| | | | | | | | | We were not testing for carrier correctly when testing for ipv6 tentative addresses. Reported-by: <ast@domdv.de> X-Gentoo-Bug: 433012 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=433012
* Fix UPREFIX for Gentoo Prefix installationsWilliam Hubbs2012-08-31
| | | | | | | | | Make sure UPREFIX in our make files gets set correctly when MKPREFIX=yes. In this situation, UPREFIX should be ${PREFIX}/usr. Reported-by: <heroxdb@gentoo.org> X-Gentoo-Bug: 415899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=415899
* fix typoWilliam Hubbs2012-08-31
|
* add MKPREFIX flag to build systemWilliam Hubbs2012-08-31
| | | | This allows building OpenRC for a Gentoo Prefix installation.
* 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
|
* Do not silence errorsChristian Ruppert2012-08-19
|
* Fix quiet usageChristian Ruppert2012-08-18
| | | | | EINFO_QUIET will always been unset when we first do unsetenv("EINFO_QUIET") and later query it again anyway..
* 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
* sh/tmpfiles: fix quoting for optional argumentsRobin H. Johnson2012-08-16
| | | | | | | Some optional arguments were missing quotes in the tests, so produced spurious warnings. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* 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.
* Bug #427152: Port of VLAN code to sysfs/iproue2 from vconfig lost the ↵Robin H. Johnson2012-07-20
| | | | | | ability to create different vlans with the same ID but different interfaces on a single system. Implement it now. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* 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 "add the appropriate network scripts to the boot runlevel"William Hubbs2012-07-09
| | | | | This reverts commit add965706a3a239a7eb6750d6fc14090eb70dd12. This commit was broken so I need to revert it.
* fix reference to dmesg man pageWilliam Hubbs2012-07-09
| | | | | | | | Correct the reference in conf.d/dmesg from dmesg(8) to dmesg(1). reported-by: <toralf.foerster@gmx.de> X-Gentoo-Bug: 425370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=425370
* fix typoWilliam Hubbs2012-07-09
|