aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-21tmpfilesd: parse arguments with spacesAndrew Gregory
systemd allows the final arg in tmpfiles to contain spaces. Using the read() call to set the variables includes all trailing components in $arg so it doesn't get cut off. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-10-21tmpfiles: return success from _f/_F on empty $argAndrew Gregory
'[ -n "$arg" ] && _w' causes _f/_F to return the failure from the test when $arg is empty. Inverting the test causes the test and _f/_F to return success. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-10-21tmpfiles: do not process systemd.confWilliam Hubbs
This file contains definitions specific to systemd, so we should not process it. Reported-by: <andrew.gregory.8@gmail.com>
2012-10-19tmfiles: change need dev to use dev.William Hubbs
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.
2012-10-19devfs: Remove references to specific device managersWilliam Hubbs
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
2012-10-19Fix bashism in tmpfilesd scriptsWilliam Hubbs
Reported-by: <pesa@gentoo.org>
2012-10-18release openrc-0.11William Hubbs
2012-10-17Spacing fixesWilliam Hubbs
2012-10-17tests: fix the pathsWilliam Hubbs
When the test suite is being run, we need our local directories in PATH and LD_LIBRARY_PATH before the system directories. This makes sure we run our tests using the currently built tree.
2012-10-17functions.sh: do not hard code path in e* wrapper functionsWilliam Hubbs
We should use the "command" shell builtin to execute a binary from within the wrapper with the same name. Hard coding the path to the binary makes our test suite fail.
2012-10-17Oldnet: bonding: set miimon correctlyLorand Kelemen
Miimon needs to be activated before downdelay is set. X-Gentoo-Bug: 421757 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=421757
2012-10-16Oldnet: the loopback interface does not need sysfsWilliam Hubbs
2012-10-16Migrate /var/run and /var/lock to symlinksWilliam Hubbs
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.
2012-10-16Revert "Prepare for real "restart" support"Christian Ruppert
This reverts commit c5bb6829d00a4034f7294aa4af79d5d114572ac1. That was meant for my local devel branch :)
2012-10-16Add documentation for subsuming supportWalter
X-Gentoo-Bug: 428604 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=428604
2012-10-16Add Vim modelineChristian Ruppert
2012-10-12Prepare for real "restart" supportChristian Ruppert
2012-10-11net/bonding: Sanity-check sysfs usageRobin H. Johnson
If sysfs is not available, you might still be able to create bond interfaces, but only in very specific configurations, and you must have the ifenslave binary instead to call ioctls. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-10-11net/bonding: subsume functionality for NFS bootingRobin H. Johnson
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>
2012-10-10net/{bridge,iproute2}: Stricter iproute2 ip link syntax & promisc handlingRobin H. Johnson
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>
2012-10-09checkpath: fix bool valuesWilliam Hubbs
Use true/false for bool values instead of 0/1. Reported-by: <vapier@gentoo.org>
2012-10-09checkpath: change the owner/group only when requested to do soWilliam Hubbs
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
2012-10-05Fix default runlevel symlink pathsAndrew Gregory
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>
2012-10-05Remove non-standard reboot option from inittabAndrew Gregory
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>
2012-10-04set the RC_UNAME environment variable when updating dependenciesWilliam Hubbs
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>
2012-10-02sysfs: add -lxc keywordWilliam Hubbs
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
2012-10-02dmesg should not run in a linux containerWilliam Hubbs
reported-by: <Walter@pratyeka.org> X-Gentoo-Bug: 436266 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=436266
2012-09-26tmpfiles.d init.d scriptsRobin H. Johnson
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>
2012-09-26sh/tmpfiles.sh: Improve dry-run mode.Robin H. Johnson
Dry-run with more detail is more useful this way. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-09-26init.d/devfs: Run after (u)dev-mount, before udev/mdevRobin H. Johnson
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>
2012-09-26runlevels: Include sysfs in the sysinit level.Robin H. Johnson
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>
2012-09-26Add -lxc keyword to urandom scriptWilliam Hubbs
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
2012-09-25small runscript man page cleanupsWilliam Hubbs
2012-09-25Drop restart_pre/restart_postWilliam Hubbs
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.
2012-09-23Clarify how to handle restart processingWilliam Hubbs
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.
2012-09-23fix Makefile indentationWilliam Hubbs
2012-09-22Add restart_pre/restart_post support, also document RC_CMDChristian Ruppert
2012-09-20fix RC_SVCDIR on prefix systemsWilliam Hubbs
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.
2012-09-15netmount: do not handle NFS mountsWilliam Hubbs
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
2012-09-14Typo: emtpy -> emptyChristian Ruppert
Reported-by: Walter <walter@pratyeka.org> X-Gentoo-Bug: 430146 X-Gentoo-Bug-URL: https://bugs.gentoo.org/430146
2012-09-12Silence the right get_pid() callChristian Ruppert
2012-09-12Silence get_pid(), OpenRC will give the process some time to create the PID ↵Christian Ruppert
file and the first get__pid() call may fail.
2012-09-10netmount: add checks for rpc.idmapd for nfs4 filesystemsWilliam Hubbs
Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 427996 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=427996
2012-09-09add RC_PREFIX environment variableWilliam Hubbs
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.
2012-09-09dmesg: add -prefix keywordWilliam Hubbs
Dmesg should not run on prefix systems. Reported-by: <heroxbd@gentoo.org>
2012-09-07savecache: make sure $RC_LIBEXECDIR is writableWilliam Hubbs
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
2012-09-07oldnet/iproute2.sh: fix carrier detectionWilliam Hubbs
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
2012-08-31Fix UPREFIX for Gentoo Prefix installationsWilliam Hubbs
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
2012-08-31fix typoWilliam Hubbs
2012-08-31add MKPREFIX flag to build systemWilliam Hubbs
This allows building OpenRC for a Gentoo Prefix installation.