aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-02Add detection for rkt containersWilliam Hubbs
2015-12-02Add detection for docker containersWilliam Hubbs
2015-12-01librc: comsolidate rc_sys_v1 and rc_sys_v2 into rc_sysWilliam Hubbs
These functions were never meant to be used outside of OpenRC, and they were added when we thought we were going to do away with the automatic detection of subsystems. Since the autodetection is not going away, we can combine these functions into rc_sys.
2015-12-01rc-functions.sh: add support for user-defined want dependenciesWilliam Hubbs
2015-11-12Implement "want" dependencyIan Stakenvicius
The want dependency is similar to the use dependency. If a service script, for example called service1, adds "want service2" to its depend function, OpenRC will attempt to start service2, if it exists on the system, when service1 is started. However, service1 will start regardless of the status of service2. X-Gentoo-Bug: 406021 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406021
2015-11-11conf.d/netmount: typo fixWilliam Hubbs
X-Gentoo-Bug: 564846 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=564846
2015-11-11Standardize macro tests for gnu hurdBenda Xu
This also fixes breakage of GNU/hurd builds introduced by commit 3f82edbeb92.
2015-11-05librc: rework overriding rc.conf options from the kclWilliam Hubbs
Rename the rc_conf_override function to describe its purpose better, drop one conditional compile by making it available everywhere, and move the call to it after the optional rc.conf.d directory is processed.
2015-11-05librc: Remove redundant code from rc_config_loadWilliam Hubbs
2015-11-05Add rc.conf.d supportWilliam Hubbs
This makes it possible to override settings in rc.conf by adding a directory @SYSCONFDIR@/rc.conf.d and putting files in this directory. The files will be processed in lexical order, and the last setting in these files will be used.
2015-10-29consolefont: add after modules to dependenciesWilliam Hubbs
X-Gentoo-Bug: 559540 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=559540
2015-10-21bootmisc: optionally save the previous dmesg logWilliam Hubbs
X-Gentoo-Bug: 561204 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561204
2015-10-21etc/rc.conf: Clean up documentation for rc_hotplugWilliam Hubbs
X-Gentoo-Bug: 554540 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=554540
2015-10-20Add net-online serviceWilliam Hubbs
2015-10-14mtab: typo fixWilliam Hubbs
2015-10-14mtab: make /etc/mtab as a file configurableWilliam Hubbs
2015-10-13openrc-run.sh: fix new required_* tests to exit properlyWilliam Hubbs
2015-10-13typo fixWilliam Hubbs
X-Gentoo-Bug: 563010 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563010
2015-10-13sysfs: consolidate cgroup processing code in a single functionWilliam Hubbs
2015-10-13mountinfo: make sure the netdev variable is initialized on LinuxWilliam Hubbs
This fixes the following regression: X-Gentoo-Bug: 562668 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668
2015-10-13openrc-run.sh: allow spaces in required_{files,dirs}William Hubbs
X-Gentoo-Bug: 562320 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562320
2015-10-08increment version numberWilliam Hubbs
2015-10-08Update ChangeLogWilliam Hubbs
2015-10-08localmount: white space cleanupWilliam Hubbs
2015-10-08localmount: clean up handling of aufs branchesIan Stakenvicius
X-Gentoo-Bug: 560008 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560008
2015-10-07mtab: fix update logicWilliam Hubbs
This advises users to remove mtab from their runlevels if /etc/mtab is a symlink, and it creates the symlink if /etc/mtab does not exist on a system. X-Gentoo-Bug: 560060 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560060
2015-10-06cgroups: Add the hugetlb, net_cls and pids controllersAustin S. Hemmelgarn
Note from WilliamH: I slightly rearranged the code and added the settings in rc.conf. X-Gentoo-Bug: 555488 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=555488
2015-10-06sysfs: use printf instead of echo to write to cgroup filesWilliam Hubbs
This is needed for compatibility with musl and printf is also posix. X-Gentoo-Bug: 562334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334
2015-10-06rc-cgroup.sh: Do not add leading spaces to cgroup valuesWilliam Hubbs
We were starting the value we write to the cgroup setting file with leading spaces and this was causing issues. This change makes sure that we aren't adding leading spaces to the value. X-Gentoo-Bug: 562354 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562354
2015-10-05bootmisc: convert errors in clean_run function to warningsWilliam Hubbs
X-Gentoo-Bug: 552418 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=552418
2015-10-05bootmisc: only remove temp directory if umount is successfulWilliam Hubbs
Change the clean_run function to only remove the temp directory if the umount was successful. X-Gentoo-Bug: 561230 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561230
2015-10-05mountinfo: fix --netdev and --nonetdev on LinuxWilliam Hubbs
On Linux, the --netdev and --nonetdev switches were not working. They were both returning false. After this change, they operate based on the presence or abscence of the _netdev option in mount options.
2015-10-04mountinfo: read /proc/self/mounts instead of /proc/mounts on LinuxWilliam Hubbs
2015-10-02start-stop-daemon.sh: complain in start if command is undefinedWilliam Hubbs
The default start-stop-daemon start function expects the command variable to be defined to point to the daemon we want to start. If the variable is undefined, this means that there will be nothing to start, and in this case we should complain because it is possible that the script writer made a typo in the variable name.
2015-10-01Revert "local/netmount: remove uses of -O [no]_netdev"William Hubbs
This reverts commit 2a439c85bd69efc14847b4397bd6783cac051405. There is another use case for -O involving iscsi, so we can't remove it.
2015-09-17openrc-run: rename some dependency variables and a function for clarityWilliam Hubbs
All of the dependency type lists had the types_ prefix in their names; this has been changed to deptypes_ to make them more self documenting. Along the same lines, the setup_types function was renamed setup_deptypes.
2015-09-01localmount/netmount: on Linux, fail if some file systems do not mountWilliam Hubbs
The following return codes are returned by mount -a: 0: all file systems mounted. 32: no file systems mounted. 64: some file systems mounted. The localmount/netmount services should fail if all file systems that should mount did not mount.
2015-08-21Make localmount and netmount always succeed on non-linuxWilliam Hubbs
2015-08-18local/netmount: remove uses of -O [no]_netdevWilliam Hubbs
This was causing an incompatibility with busybox, and we do not use it in Gentoo.
2015-08-17allow localmount and netmount to failWilliam Hubbs
2015-08-10binfmt: fix indent on returnMike Frysinger
2015-08-10savecache: clean up implementationDoug Freed
X-Gentoo-Bug: 557222 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=557222
2015-08-03tmpfiles: run restorecon on the entire pathJason Zaman
The tmpfiles "d" entry will create a full path and only the last dir in the path will have its SELinux label set correctly. This patch will restorecon the parents as well so that the selinux labels are correct. eg, "d /run/libvirt/lxc", then "lxc" would have the correct SELinux label but "libvirt" would not. Signed-off-by: Jason Zaman <jason@perfinion.com>
2015-08-02mountinfo: fix -e and -E optionsWilliam Hubbs
Add the -e and -E options to getoptstring so they are recognized.
2015-07-23Add EERROR_QUIET and EINFO_QUIET to environment whitelistWilliam Hubbs
2015-07-10Increment versionWilliam Hubbs
2015-07-10savecache: Fix unable to create cache messageDoug Freed
The cache is created in $RC_LIBEXECDIR, not $RC_SVCDIR, so fix the error message when we fail to create it to match.
2015-06-24tmpfiles: Recognize type 'v' (create btrfs subvol)Mike Gilbert
This change does NOT implement btrfs subvol creation. Instead, it treats 'v' the same as 'd', which is an acceptable fallback according to the manual. Fixes #58
2015-06-24Remove execute bit from tmpfiles.sh.inMike Gilbert
2015-06-19Update ChangeLogWilliam Hubbs