aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
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-13sysfs: consolidate cgroup processing code in a single functionWilliam 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-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-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-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-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-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-02bootmisc: Don't call dmesg in systemd-nspawn containersMike Gilbert
This fixes #57.
2015-05-11Add support for the s6 supervision suiteWilliam Hubbs
2015-05-01Disable service scripts for systemd-nspawnMike Gilbert
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
2015-04-27convert all references from runscript to openrc-runWilliam Hubbs
2015-04-25mtab: move toward requiring /etc/mtab to be a symbolic linkWilliam Hubbs
This changes the mtab service in the following way: - If /etc/mtab is a symbolic link, success is returned. - If /etc is not writable, we warn that we could not update /etc/mtab and return success. - If /etc/mtab does not exist, we create a symbolic link from /etc/mtab to /proc/self/mounts. - Otherwise, we warn that updating /etc/mtab as a file is deprecated and continue to update it after outputting instructions to the user for how to move it to a symbolic link.
2015-04-21savecache: clean up creation of cache directoryWilliam Hubbs
The cache directory should be created via mkdir -p instead of mkdir. This makes sure all parent directories are created. Also, we now display an error message explaining that we were unable to create the cache directory if creation fails.
2015-04-21savecache: fix check for $RC_LIBEXECDIR writabilityWilliam Hubbs
We were originally checking to see if $RC_LIBEXECDIR/cache was writable. For a new install, this check will fail since this path does not exist. This is also incorrect because later we create $RC_LIBEXECDIR/cache. The correct check is checkpath -W $RC_LIBEXECDIR, and this fixes the issue. X-Gentoo-Bug: 544632 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=544632
2015-04-20Add binfmt service to sysinit runlevelWilliam Hubbs
This makes binfmt processing behave like tmpfiles processing which follows the same specification as systemd. This fixes #48. X-Gentoo-Bug: 545162 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545162
2015-04-20procfs: do not force loading of usbcore moduleWilliam Hubbs
It appears that the only reason we were force loading the usbcore module was to facilitate mounting usbfs. Since we no longer mount usbfs, this is no longer necessary. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-20procfs: remove usbfs and usbdevfs supportWilliam Hubbs
The usbfs and usbdevfs file systems have been deprecated since Linux-2.6.32, so we remove the code to automount them. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-19procfs: do not test for the existence of /proc/filesystemsWilliam Hubbs
The test for the existence of /proc/filesystems is redundant since we always return success.
2015-04-17procfs: remove redundant check for OpenVZWilliam Hubbs
The check for OpenVZ is not necessary since the procfs service already will not run on OpenVZ due to the keywords setting.
2015-04-14Move SELinux mount to sysfs serviceWilliam Hubbs
The selinux file system is mounted under /sys, so move the code for it to the appropriate service. X-Gentoo-Bug: 546290 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546290
2015-04-08Fix script execution in the local serviceWilliam Hubbs
The local service should use eval when it executes scripts since it has the redirection set up in a variable. This fixes #50. X-Gentoo-Bug: 545012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545012
2015-04-07Make sysctl on Linux respect rc_verbose settingWilliam Hubbs
We do not need to spam the console with variable settings by default. This fixes #51. X-Gentoo-Bug: 541922 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541922
2015-03-23Fix savecore service on FreeBSDAnthony Donnelly
savecore -C only needs the dumpdevice otherwise it causes an error on startup. This fixes #40.
2015-03-20savecache: Make sure cache directory exists before running checkpathWill Miles
checkpath -W can fail if the specified path doesn't actually exist yet. In this case savecache script should attempt to create the path if it is missing, however it is pre-empted by the checkpath call. This patch adds an explicit existence test before executing checkpath. This fixes #36.
2015-02-27bootmisc: clean_run safety improvements.Robin H. Johnson
If /tmp or / are read-only, the clean_run function can fail in some very bad ways. 1. dir=$(mktemp -d) returns an EMPTY string on error. 2. "mount -o bind / $dir", and don't check the result of that, 3. "rm -rf $dir/run/*", which removes the REAL /run contents 4. box gets very weird from this point forward Signed-Off-By: Robin H. Johnson <robbat2@gentoo.org> Signed-Off-By: Chip Parker <infowolfe@gmail.com> Reported-by: Chip Parker <infowolfe@gmail.com> Tested-by: Chip Parker <infowolfe@gmail.com>
2015-02-18local: fix redirectionsWilliam Hubbs
The local service now redirects stdout and stderr for the scripts it runs to /dev/null unless it is run in verbose mode. X-Gentoo-Bug: 537444 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537444
2015-02-03Add nfsclient to netmount use dependenciesWilliam Hubbs
X-Gentoo-Bug: 537996 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537996
2015-01-24tmpfiles.*: Follow OpenRC's message styleConsus
Just to be consistent.
2015-01-18tmpfiles.dev: pass --boot to tmpfiles.sh so kmod works properlyWilliam Hubbs
2014-11-23Make sysfs behave like netmount and localmountWilliam Hubbs
sysfs now mounts all related sysfs file systems and returns success, like netmount and localmount. Also, we now check to make sure the cgroups are not mounted before we mount them. X-Gentoo-Bug: 530138 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=530138
2014-11-20init.d: add osclock to ignore patternsWilliam Hubbs
2014-11-20devfs: optionally add missing symbolic linksWilliam Hubbs
If symbolic links for /dev/{fd,stdin,stdout,stderr,core} do not exist once /dev is mounted, we should create them.
2014-11-06netmount: unmount nfs file systemsWilliam Hubbs
2014-10-27Add osclock serviceRalph Sennhauser
This scripts sole purpose is to "provide clock" on OSs that already take care of the clock being properly set.
2014-10-23add missing files for GNU/HurdSvante Signell
2014-10-22Add missing files for GNU/kFreeBSDGabriele Giacone
2014-10-16add back nfs and nfs4 file systemsWilliam Hubbs
Fix gentoo bug #427996 correctly. We should attempt to mount the file systems, but not try to start the daemons. The previous fix removed mounting the file systems as well as starting the daemons. X-Gentoo-Bug: 508574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=508574
2014-10-06localmount: unmount aufs branchesRick Farina (ZeroChaos)
2014-09-16Revert "sysfs: fix permissions on cgroup mounts"William Hubbs
This reverts commit 7a25491ced95e14b04b8fe6225171564c87fcde0. This was broken; I need to look further into it.