aboutsummaryrefslogtreecommitdiff
path: root/init.d/mtab.in
AgeCommit message (Collapse)Author
2017-11-14strongly encourage Linux users to not make /etc/mtab a flat fileWilliam Hubbs
The OpenRC team does not currently know of any modern linux tools that require /etc/mtab to be a flat file, so this puts users on notice that the mtab service will be removed in the future.
2017-11-14adjust mtab and localmount dependenciesWilliam Hubbs
localmount had mtab in its "use" dependencies; however, it makes more sense to add "before localmount" to the mtab service and remove "use mtab" from the localmount service.
2017-03-16update dependencies for clock serviceWilliam Hubbs
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
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-10-14mtab: typo fixWilliam Hubbs
2015-10-14mtab: make /etc/mtab as a file configurableWilliam Hubbs
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-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-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.
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.
2013-12-29Rename runscript to openrc-runWilliam Hubbs
This was requested by Debian, because the minicom software, which is available on Debian and other distros, has a binary named runscript. We are keeping a backward compatibility symlink for now, but this allows Debian or any other distro to safely remove the symlink. X-Gentoo-Bug: 494220 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
2013-02-23Fix shebangs in services to point to the correct location of runscriptAndrew Gregory
SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-11-06init.d/mtab: Another instance of the same pattern matching case.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-07-26Bring Back prefix supportWilliam Hubbs
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
2012-02-21Remove prefix supportWilliam Hubbs
I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
2011-09-02Mtab: fix typoWilliam Hubbs
Reported-By: Helmuth Schmelzer <des-colo@hotmail.com> X-Gentoo-Bug: 381503 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=381503
2011-08-20Do not update mtab if it is a symbolic linkWilliam Hubbs
Reported-by: <junkmailnotread@yahoo.com> X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-26mtab: fix test for a link to a location in /procWilliam Hubbs
/etc/mtab can be a link to a file in /proc. If it is, we should not attempt to update /etc/mtab. The original test used "! -w" as part of the test. This does not work since everything is writeable by root. Thanks to Robin Johnson for the suggestion of using readlink -f and the regular expression. Reported-By: junkmailnotread@yahoo.com X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-23Mtab: fix typoWilliam Hubbs
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-20If mtab is write only and a symlink then assume it's linked to /proc/mountsRoy Marples
and don't try and update it. Fixes #185.
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-05-01Add (c) to CopyrightRoy Marples
2008-03-25Rework our folder structure so that we don't have OS specific dirs, making ↵Roy Marples
it easier to share init and conf files per OS.