Andrew Gregory
8a44067838
Fix shebangs in services to point to the correct location of runscript
...
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-23 20:30:39 -06:00
Steve L
8d61d03e27
localmount: quoting fixes
...
X-Gentoo-Bug: 446556
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446556
2012-12-16 20:00:01 -06:00
William Hubbs
c5e163cffc
typo fixes
2012-11-30 12:05:26 -06:00
William Hubbs
5cce37837b
localmount: only skip unmounting /usr if it was premounted
...
Add a test when localmount is started to determine if /usr is mounted
from inside an initramfs for Linux systems. If it is not, we can unmount it when
localmount stops.
On *bsd systems, we always unmount /usr if it is separate.
Reported-by: ryao@gentoo.org
2012-11-29 10:19:20 -06:00
William Hubbs
e641b43849
Bring Back prefix support
...
We now have a team member who is interested in OpenRC on prefix, so I am
bringing it back to the main tree.
2012-07-26 10:54:48 -05:00
William Hubbs
ee1a698451
do not umount /usr on linux systems
...
We can't really umount /usr on linux systems because /usr is a special
case if it is a separate filesystem which is handled by an initramfs.
reported-by: tamiko+GENTOO@kyomu.43-1.org
X-Gentoo-Bug: 415523
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=415523
2012-05-13 19:00:39 -05:00
William Hubbs
533813dda0
localmount: Only unmount local filesystems if we are shutting down
...
Make the stop function in localmount only unmount file systems when the
system is going down.
reported-by: Alexey Prokopchuk <alexpro@homelan.lg.ua>
X-Gentoo-Bug: 407167
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=407167
2012-03-25 18:38:13 -05:00
William Hubbs
3247184d86
Remove prefix support
...
I spoke with the prefix team sometime back and was told that they do not
have an interest in using OpenRC on prefix systems.
2012-02-21 07:27:16 -06:00
William Hubbs
1c7d3165e4
Allow localmount to run in openvz containers
...
Reported-By: Daniel Robbins <drobbins@funtoo.org>
X-Gentoo-Bug: 401063
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401063
2012-02-13 12:15:55 -06:00
Christian Ruppert
2d180551ef
Fix regex pattern for umounts during shutdown
...
This patch fixes the regex pattern for /lib -> /lib(32|64)?
as well as the pattern for RC_SVCDIR if it contains /lib(32|64)?/.
This fixes bug 381783.
X-Gentoo-Bug: 381783
X-Gentoo-Bug-URL: https://bugs.gentoo.org/381783
2011-09-11 18:51:29 +02:00
Kirill Elagin
0c7032840b
save and restore IFS correctly
...
X-Gentoo-Bug: 371141
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
2011-07-07 12:23:58 -05:00
William Hubbs
e8e86b96dc
fix issue with extra_net_fs_list
...
The extra_net_fs_list variable was not being included as it should have
been for the net file systems because it was being expanded before it
was set by the user.
X-Gentoo-Bug: 374133
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=374133
2011-07-05 18:41:33 -05:00
Mike Frysinger
d0bc4f20ad
drop useless "All rights reserved" notice
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29 19:46:31 -04:00
Kirill Elagin
2050e67911
localmount: make OIFS and CIFS local in stop function
...
X-Gentoo-Bug: 371141
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
2011-06-24 12:13:28 -05:00
Lars Wendler
ede4d1cd60
Don't unmount /run on shutdown
...
This is needed so that udev will stop properly on shutdown.
X-Gentoo-Bug: 363971
X-Gentoo-Bug-Url: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-04-18 15:26:19 -05:00
Anthony G. Basile
c8b5078660
Fix bug #354805
2011-02-14 04:41:08 -05:00
Robin H. Johnson
e431599d08
Add "after lvm modules" as Flameeyes reports that LVM is starting too late on his system in some cases.
2010-12-11 14:25:46 -08:00
William Hubbs
cdf07b5970
localmount should only use the -O option for linux systems
...
This fixes bug #347307 .
2010-11-30 15:40:44 -06:00
William Hubbs
ac37dc2764
do not mount local file systems with the _netdev option in fstab
...
This fixes #344947 .
2010-11-15 12:01:48 -06:00
Roy Marples
95ee39ab1c
Add support for Linux Containers, fixes #202 .
...
Patch by bug reporter.
2009-11-04 19:21:24 +00:00
Roy Marples
b4104957b1
We should use -feature instead of nofeature.
...
This matches the ifconfig and Gentoo USE flag syntax and is hopefully
easier to read.
Fixes #178 .
2009-07-01 00:07:32 +01:00
Roy Marples
c0fd1b49e4
Move non compiled libraries from /lib/rc to /libexec/rc
...
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.
2009-05-23 20:38:12 +01:00
Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
e70a142956
Style.
2009-04-27 07:51:18 +00:00
Roy Marples
bbd810425b
Move special umount of tmpfs to the swap init script where it belongs, #149 .
2009-04-19 11:15:37 +00:00
Roy Marples
744a8bbb4a
Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
2009-04-16 23:34:38 +00:00
Roy Marples
7183cb1b18
Fix last commit
2008-07-09 16:20:48 +00:00
Roy Marples
b83108cd2e
Add a knob to avoid the unmounting of some points.
2008-07-09 16:08:38 +00:00
Roy Marples
fba18b3a48
localmount uses lvm
2008-03-05 08:40:17 +00:00
Roy Marples
15cf41e713
Split VPS into VSERVER and OPENVZ
2008-03-03 17:19:56 +00:00
Roy Marples
67c5fd6bb8
Ensure that our scripts call prefixed runscript.
2008-03-02 21:14:01 +00:00
Roy Marples
a12dbdc6c9
Don't check for root in prefix.
2008-03-02 21:13:21 +00:00