aboutsummaryrefslogtreecommitdiff
path: root/init.d/devfs.in
AgeCommit message (Collapse)Author
2021-12-20use HEAD in git URIs to point to the default branchMike Frysinger
This makes the URIs shorter and dynamic: whatever the default branch the repo uses will be used.
2021-01-28allow devfs to run on lxcWilliam Hubbs
X-Gentoo-Bug: 761918 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=761918 Closes #272.
2017-12-14devfs: cleanupWilliam Hubbs
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since they can be calculated at runtime.
2016-07-31init.d: initial service adjustments for docker supportWilliam Hubbs
Add -docker keyword to the same scripts that have -lxc keyword.
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-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
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-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-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
2014-07-16devfs: fix SELinux contextsJason Zaman
SELinux contexts in /dev need to be fixed after it is mounted X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-01-23devfs: explicitly mount /dev/shm with mode=1777Mike Frysinger
The current code relies on the tmpfs mount defaulting to 1777 permissions. If it doesn't, things break badly. This can come up when tmpfs is disabled in the kernel and ramfs is being used instead (the kernel will alias tmpfs to ramfs). The default permissions for ramfs is 0755.
2014-01-05devfs: add code to mount /devWilliam Hubbs
All Linux systems need /dev to be set up,so add code to devfs to do this. The process devfs follows is below. 1. If static_dev is yes, nothing is done. 2. if /dev is an entry in fstab it is mounted or remounted based on that entry. 3. If /dev is not in fstab, it attempts to mount /dev as a devtmpfs or tmpfs depending on which is defined in the kernel; devtmpfs is preferred. 4. If neither devtmpfs nor tmpfs is defined, it assumes the user wants static /dev and prints a warning. X-Gentoo-Bug: 492694 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=492694
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-07-31devfs: Add -lxc keywordAlexander V Vershilov
Devfs is not needed for LXC, as LXC mounts all required fs on it's own. Reported by specing.
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>
2013-02-14devfs: Mount the posix message queue file systemWilliam Hubbs
Reported-by: reuben.m@gmail.com X-Gentoo-Bug: 456998 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=456998
2012-10-19devfs: Remove references to specific device managersWilliam Hubbs
There were references in the devfs script to mdev, udev and udev-mount. These all provide the virtuals dev and dev-mount; that is how we should refer to them. I believe in the discussion I had with Tony and Robin about this, we were going to change the "use" line to "need". However, after thinking that over, I'm not comfortable doing so because someone could be running a static /dev with no device manager. Reported-by: <tokiclover@gmail.com> X-Gentoo-Bug: 438932 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438932
2012-09-26init.d/devfs: Run after (u)dev-mount, before udev/mdevRobin H. Johnson
Using the new dev-mount virtual, with udev-mount included until new udev version is rolled out, we run devfs earlier now, before udev/mdev. It only needs (u)dev-mount before it, so that /dev is mounted. This opens the way for tmpfiles.d, which needs to be sandwiched in the middle. 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-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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
2009-04-27Style.Roy Marples
2009-01-06Keyword novserver, #137.Roy Marples
2008-10-10sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples
mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version.