summaryrefslogtreecommitdiff
path: root/sh/init.sh.Linux.in
Commit message (Collapse)AuthorAge
* fix handling of /run for vserverWilliam Hubbs2012-07-02
| | | | | | | | | | Mount can't be used in vservers, but /run is still needed. So we create the directory and clear it out instead of mounting a tmpfs in that situation. reported-by: <patrick@gentoo.org> X-Gentoo-Bug: 423739 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=423739
* move rc_svcdir to /run/openrc on Linux systemsWilliam Hubbs2012-05-14
| | | | | | | | | | | | | | | If you are not using linux, this should not affect you. If you are using linux, from this point forward, openrc requires the /run directory to be a mounted tmpfs. If it is, you can run @LIBEXECDIR@/sh/migrate-to-run.sh as root to migrate your dependency tree and state information to the new location. If it is not, you must create the /run directory as root with permissions 755 then reboot your system. reported-by: Maxim Kammerer <mk@dee.su> X-Gentoo-Bug: 401059 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401059
* clarify the message about /proc being already mountedWilliam Hubbs2012-05-02
| | | | | | This message was being taken by some users as an error, so I have removed the part about "skipping..." Hopefully this will make the message less alarming.
* Revert "Mount /run as early as possible"Christian Ruppert2011-09-12
| | | | | This reverts commit 5ed4d084d95608e40cb21888c18a8f381a44cd69. /run needs to be mounted after /proc.
* Mount /run as early as possibleWilliam Hubbs2011-09-06
| | | | | This commit moves the code that mounts /run to the earliest possible position in openrc.
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* only warn about /run if it existsMike Frysinger2011-05-16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix permissions for /run/lockWilliam Hubbs2011-04-19
| | | | | If /run/lock is a directory, set the ownership and permissions for it, whether or not we created the directory.
* Add support for /run directoryAmadeusz Żołnowski2011-04-18
| | | | | | | | This is a new directory for storing volatile runtime data. See https://lwn.net/Articles/436012 X-Gentoo-Bug: 363971 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363971
* rework test for mounted /procWilliam Hubbs2011-03-24
| | | | | | | | | | | | | | | | | The previous test assumed that we could always rely on the minor fault counter to change between reads of /proc/self/stat, but we found that this is not the case. The new test compares two reads of /proc/self/environ for which we have set the same environment variable to two different values. If the comparison shows the two reads have the same contents, we know that /proc is not working. I would like to thank Robin Johnson and Mike Frysinger for their input for this patch. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=348416
* sh/init: Detect a mounted /proc without sleepingRobin H. Johnson2011-01-18
| | | | | | | | | | | | Previously we checked if /proc was alive by reading /proc/uptime twice with a 1 second sleep between calls, so that it had time to update. This got a complaint of an entire 1 second delay, so we improve the check to be much faster without sleep. We cannot continue to use /proc/uptime as it only has a 10ms resolution. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=348416 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix selinux context for rc-svcdir (bug #347503)Robin Johnson2010-12-03
|
* Mount xenfs early so OpenRC can detect it.Juan RP2010-02-26
|
* If mounting tmpfs fails, try ramfs.Roy Marples2009-11-20
| | | | This is because buggy kernels always report tmpfs even when not present.
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Stop using needless {} in varsRoy Marples2009-04-26
|
* Add a new shutdown runlevel, Gentoo #224537.Roy Marples2008-11-03
| | | | | | | Split halt.sh into halt, killprocs, romount and savecache services. The reboot runlevel is removed but mapped to shutdown. The halt script should be moved to the sysvinit package.
* sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples2008-10-10
| | | | | | | | | | | 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.
* Allow OpenVZ to mount /sys and device managers, #102Roy Marples2008-08-19
|
* Some systems are only detectable after /proc is mounted, so re-test if unknown.Roy Marples2008-04-06
|
* .sh.BSD.in is a better extension.Roy Marples2008-03-26