aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
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.
2014-09-16sysfs: fix permissions on cgroup mountsWilliam Hubbs
2014-08-29savecache: check permissions on the correct directoryJoe M
2014-08-22cgroups: fix cgroup subsystem mountingWilliam Hubbs
Originally, we aborted all of the cgroup setup if /sys/fs/cgroup/openrc was already mounted. This caused an issue in lxc containers, so we should always allow the subsystems to be mounted. X-Gentoo-Bug: 520606 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=520606
2014-08-17mtab: add verbose level deprecation warningsWilliam Hubbs
2014-08-16adjust deprecation schedule for mtabWilliam Hubbs
- Quiet the deprecation messages forr now - update the feature removal schedule to reflect that it will be removed in 2.0.
2014-08-14Deprecate the mtab service scriptWilliam Hubbs
The mtab service script is no longer needed on modern Linux systems, so we can remove it in 1.0. However, we need to set a deprecation notice first.
2014-08-10bootmisc: do not run the clean_run function in an LXC containerWilliam Hubbs
2014-08-09sysctl.linux.in: use the --system optionWilliam Hubbs
According to the sysctl man page, the --system option causes sysctl to process all system configuration files, which include the following: /run/sysctl.d/*.conf /etc/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf X-Gentoo-Bug: 484796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=484796
2014-08-08devfs: several small clarificationsWilliam Hubbs
- Rename the static_dev switch in conf.d/devfs to skip_mount_dev since this is a better description of what the switch does. - Clarify the error messages in the devfs service script based on the new name of the switch.
2014-07-24hwclock: always set the kernel's timezoneWilliam Hubbs
The hwclock service should set the time zone regardless of the setting of the clock_hctosys variable. This needs to be done to prevent issues when the system time is being synchronized using ntp. X-Gentoo-Bug: 434410 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=434410
2014-07-16devfs: fix restorecon ebegin message to match sysJason Zaman
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956