aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
2016-07-19init.d: combine sysctl scriptsWilliam Hubbs
We had separate sysctl scripts for each operating system. However, there is no need to do this since we can detect the operating system at runtime with $RC_UNAME.
2016-07-18modules: add support for FreeBSDWilliam Hubbs
This is based on a patch submitted by Joe Maloney <pkgdemonteam@gmail.com>. This fixes #91.
2016-07-06hwclock: always use --noadjfile if availableWilliam Hubbs
When we use the --utc or --localtime switch, also use --noadjfile if it is available. This means hwclock will not use a drift file. X-Gentoo-Bug: 584722 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=584722
2016-05-05killprocs: remove calls to sleepWilliam Hubbs
X-Gentoo-Bug: 487084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487084
2016-04-26localmount/netmount: clean up critical mount processingWilliam Hubbs
Fix a typo and do not fail if a path in critical_mounts is not listed as a critical mount does not get mounted.
2016-04-25localmount/netmount: allow mount points to be marked criticalWilliam Hubbs
In previous releases, we either treated no mount points as critical or all of them. Now both localmount and netmount support a critical_mounts setting. If mount points listed in this setting fail to mount, localmount and netmount will fail.
2016-04-15netmount: fix mounting on LinuxWilliam Hubbs
Before this commit, on Linux, we were always trying to mount file systems marked with _netdev, even when the previous mount command failed. Now, we do not run the second mount if the first fails. X-Gentoo-Bug: 579876 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=579876
2016-02-09sysfs: mount pstore when availableMike Frysinger
2016-01-28savecache: stop saving nettreeWilliam Hubbs
Netifrc is no longer part of OpenRC, so we shouldn't save its dep tree as part of savecache. This should have been removed when netifrc was split out. also, it might be related to the following bug. X-Gentoo-Bug: 563720 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=563720
2016-01-22fix testsWilliam Hubbs
X-Gentoo-Bug: 572602 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572602
2016-01-19localmount: Allow users to control whether errors are ignoredWilliam Hubbs
X-Gentoo-Bug: 572138 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572138
2016-01-13allow the user to decide whether fsck aborts for errorsjoe9
X-Gentoo-Bug: 564008 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=564008
2016-01-01add ignore patterns for init.d directoryWilliam Hubbs
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-12-11netmount: use want dependency to start nfsclientRick Farina (Zero_Chaos)
add in parsing of fstab to determine if nfsclient should be automatically started so that netmount can mount nfs without adding nfsclient to the default runlevel This fixes #71.
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-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