summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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
|
* add the appropriate network scripts to the boot runlevelWilliam Hubbs2012-07-08
|
* make oldnet the default for nowWilliam Hubbs2012-07-08
|
* 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.
* net: fix typoBjörn Baumbach2012-07-04
|
* 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
* fix handling of /run for vserverWilliam Hubbs2012-07-02
| | | | | | | | | | Mount can't be used in vservers, but /run is still needed. So we create the directory and clear it out instead of mounting a tmpfs in that situation. reported-by: <patrick@gentoo.org> X-Gentoo-Bug: 423739 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=423739
* fix consolefont documentation to reflect the default stateWilliam Hubbs2012-06-07
| | | | | | | | | conf.d/consolefont was written as though the consolefont service was active by default. It is not, so this has been fixed. reported-by: Ikonta@yandex.ru X-Gentoo-Bug: 420037 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=420037
* net/udhcpc: use -x hostname:NAME option instead of -h nameWilliam Hubbs2012-06-07
| | | | | | reported-by: bug@mejor.pl X-Gentoo-Bug: 417617 X-Gentoo-Bug-URL: https://bugs.gentoo.org/417617
* net: clarify how to prefer ifconfig over iproute2William Hubbs2012-06-06
| | | | | | reported-by: <vsync@quadium.net> X-Gentoo-Bug: 417899 X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=417899
* termencoding should not run on lxcWilliam Hubbs2012-05-27
| | | | reported-by: Alexey Shvetsov <alexxy@gentoo.org>
* rc: fix inverted string compare logicMike Frysinger2012-05-23
| | | | | | | X-Gentoo-Bug: 417227 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=417227 Reported-by: sphakka <marcoep@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Release openrc-0.10openrc-0.10William Hubbs2012-05-22
|
* rc: fix thinko in applet collapseMike Frysinger2012-05-16
| | | | | | | We want to lookup the service based on the applet name. Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* local is only allowed in functionsChristian Ruppert2012-05-17
|
* move rc_svcdir to /run/openrc on Linux systemsWilliam Hubbs2012-05-14
| | | | | | | | | | | | | | | If you are not using linux, this should not affect you. If you are using linux, from this point forward, openrc requires the /run directory to be a mounted tmpfs. If it is, you can run @LIBEXECDIR@/sh/migrate-to-run.sh as root to migrate your dependency tree and state information to the new location. If it is not, you must create the /run directory as root with permissions 755 then reboot your system. reported-by: Maxim Kammerer <mk@dee.su> X-Gentoo-Bug: 401059 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401059
* 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
* rc: collapse the applet if statements into a single array walkMike Frysinger2012-05-06
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add a new ARRAY_SIZE macro and use itMike Frysinger2012-05-06
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* split out librc-independent helpers into a dedicated header fileMike Frysinger2012-05-06
| | | | | | | Many of these helpers are not special to librc, so split them out so they can be used in all source trees (including libeinfo). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* net: Be sure to install the ip6rd module.Robin H. Johnson2012-05-03
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* clarify the message about /proc being already mountedWilliam Hubbs2012-05-02
| | | | | | This message was being taken by some users as an error, so I have removed the part about "skipping..." Hopefully this will make the message less alarming.
* 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.
* fix references to functions.shWilliam Hubbs2012-04-26
| | | | | | | There were a couple of places where we were sourcing functions.sh in @SYSCONFDIR@/init.d. This is only a backward compatibility symlink, so it should not be used for openrc. The correct place to source this from is @LIBEXECDIR@/sh.
* Change the working directory for depend onlyWilliam Hubbs2012-04-26
| | | | | | We already have a special case for depend processing, so we should change the working directory there only. This prevents us from forcing all init scripts to be run in the init directory.
* Revert "Revert "Let runscript enter the service dir before expand globs""William Hubbs2012-04-26
| | | | | | This reverts commit f971c4c0b5e45500f1255f2e076f2c101d2f9281. After further discussion, this is a good first step toward a fix, so I am putting it back.
* Revert "Let runscript enter the service dir before expand globs"William Hubbs2012-04-26
| | | | | This reverts commit 9d0dce35c3e46b4515499f3f0f1c47645be0bc48. This is being reverted due to the fix still being under discussion.
* Let runscript enter the service dir before expand globsChristian Ruppert2012-04-26
| | | | | | | | | | | | Enter the service directory, like gendeps.sh does, to make sure globs are expanded in it rather than in /. That makes sure that globbing like "need *" will end up in all files of the init.d directory. Signed-off-by: Christian Ruppert <idl0r@gentoo.org> Reported-by: Guenther Brunthaler <gb_about_gnu@gmx.net> X-Gentoo-Bug: 412677 X-Gentoo-Bug-URL: https://bugs.gentoo.org/412677
* Reduce overhead by leaving rc_deptree_update_needed() as soon as possibleChristian Ruppert2012-04-26
| | | | | | There's no need to check any further if we're returning true anyway. Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
* Disable some questionable linesChristian Ruppert2012-04-26
| | | | | | | | | | | | | | | | | | | Caused by bug 412589 I was looking at the do_mark_service() function and quickly found that the segfault is caused by a strlen() call against a NULL pointer. I also noticed it's using "/exclusive/%s.%s" so svcname.pid, all other functions are just using the svcname.. So it seems that svcname.pid was/is never used and thus not necessary at all. In relation to the above, the if statement in the do_mark_service() function ("if (ok && svcname && strcmp(svcname, service) == 0) {") needs to be fixed/improved as svcname and service are almost always equal, see my comment in the function for further details. Signed-off-by: Christian Ruppert <idl0r@gentoo.org> Reported-by: Patrick McLean <chutzpah@gentoo.org> X-Gentoo-Bug: 412589 X-Gentoo-Bug-URL: https://bugs.gentoo.org/412589