aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
2013-12-02remove type commandWilliam Hubbs
The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
2013-10-28bootmisc: do not run clean_run on VSERVER systemsWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-28loopback: do not run in a prefix or vserverWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-18remove redundant sync callsWilliam Hubbs
The localmount and mount-ro scripts were flushing pending disk writes by calling sync twice in succession. This is no longer necessary; see the bug report and blog post for reasons we were still doing this. Reported-by: Patrick Lauer <patrick@gentoo.org> X-Gentoo-Bug: 487382 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487382
2013-10-14Add uml keyword to fsck service.Alexander V Vershilov
Fix relevant an issue mentioned by Toralf Förster. X-Gentoo-Bug: 481096. X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=481096
2013-10-08netmount: add -lxc keywordWilliam Hubbs
Netmount should not run on lxc, thanks to Mark van Dijk <funtoo@internecto.net>.
2013-10-04FL-786: localmount: support filesystem mounting on openvzDaniel Robbins
2013-09-01init.d: update ignore patternsWilliam Hubbs
Remove net.lo* from the ignore pattern since these scripts are no longer part of OpenRC and add loopback and tmpfiles.dev.
2013-08-13Remove gentoo's net.* scriptsWilliam Hubbs
It has been determined that it will be best for gentoo's net.* scripts to be in a separate package to allow independent development. This package will be called netifrc and maintained by Gentoo.
2013-08-06Fix Permission Denied on reading dmesg in an LXC containerFedja Beader
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-07-26swapfiles: do not try to unmount all tmpfs mountsWilliam Hubbs
This is handled in the swap script, so it should not be done here as well. X-Gentoo-Bug: 477534 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477534
2013-07-25Introduce the tmpfiles.dev serviceWilliam Hubbs
This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
2013-06-24efivarfs: Support EFI variable access in 3.10 kernels.Robin H. Johnson
In the 3.10 kernel, EFI variables are now provided by a dedicated filesystem that needs to be mounted. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2013-04-27fsck: fix typoEugeny Shkrigunov
X-Gentoo-Bug: 467158 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=467158
2013-04-08create loopback serviceWilliam Hubbs
The loopback service handles the basic settings for the loopback interface, regardless of the network manager you are using.
2013-03-22localmount: add "no" in front of network file system typesWilliam Hubbs
On Linux, this was not an issue, but we may have been attempting to mount network file systems twice on *bsd. Reported-by: powerman-asdf@yandex.ru x-Gentoo-Bug: 462210 x-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=462210
2013-03-08oldnet: convert netmask to decimal numbers in _netmask2cidrYuta SATOH
Free BSD's ifconfig outputs a netmask in the form 0xffffff00, which was translating to 0xff.0xff.0xff.0x00,. Now we convert this to decimal numbers before we convert it to cidr notation. Reported-by: 4glitch@gmail.com X-Gentoo-Bug: 460268 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=460268
2013-03-06ipfw: change opts variable to extra_commandsWilliam Hubbs
Reported-by: 4glitch@gmail.com X-Gentoo-Bug: 459694 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=459694
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-16do not use SYSCONFDIR for binfmt.dAndrew Gregory
This makes binfmt.d consistent with tmpfiles.d and systemd which uses hard coded paths for both. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-02-16consolefont: use setfont to save the current fontAndrew Gregory
Using setfont directly to save the font prevents breakage when a distro stores consolefonts in a location other than /usr/share/consolefonts such as Arch which stores them in /usr/share/kbd/consolefonts Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-02-16bootmisc: Skip cleaning /var/run or tmp directories if they are tmpfsWilliam Hubbs
Reported-by: walter@pratyeka.org X-Gentoo-Bug: 454338 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454338
2013-02-15keymaps: fix the use of loadkeys in the euro fixWilliam Hubbs
The loadkeys man page states that if you don't pass a filename loadkeys will read from stdin. However, this is not correct, so we now pass "-" as the filename to explicitly request stdin. Reported-by: andi@grois.info X-Gentoo-Bug: 457524 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=457524
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
2013-02-11Rename shutdown_network setting to keep_networkWilliam Hubbs
We were telling users that setting shutdown_network=YES would shut down the network interfaces during shutdown, but this was exactly the opposite of what we were doing. The default was YES, which was keeping the interfaces active. This keeps the default behavior, but renames the setting to keep_network which more accurately describes its function, and instructs users to set it to NO if they want the network interfaces to go down.
2013-02-11oldnet: add support for shutdown_network from newnetWilliam Hubbs
This setting, already in use in newnet, allows the user to control whether network interfaces are stopped when the system shuts down. By default, under newnet, they are not, so I am making oldnet have the same default. A side-affect of this is that in the default configuration this fixes bugs like the one below. Reported-by: jerryfleming2006@gmail.com X-Gentoo-Bug: 259183 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=259183
2013-02-09oldnet: accomodate rkhunter false positiveWilliam Hubbs
rkhunter thinks OpenRC is a rootkit because of the hidefirstrout variable. This has been renamed to hideFirstroute in order to get past rkhunter. I realize this is not an openrc bug. In this case though I do not have a problem renaming the variable. Reported-by: ago@gentoo.org X-Gentoo-Bug: 339714 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=339714
2013-02-01sysfs: mount the fusectl file systemWilliam Hubbs
Reported-by: vapier@gentoo.org X-Gentoo-Bug: 453740 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=453740
2013-01-31remove cruft from /run directoryWilliam Hubbs
The /run directory is a mount point for a tmpfs and should not contain any files or directories. This cleans out the /run/openrc symlink and any other files which were incorrectly placed in /run. Thanks to Ian Stakenvicius for pointing out this solution.
2012-12-21net.lo: add ipv6 net and host patternsAlexander Tsoy
X-Gentoo-Bug: 442594 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
2012-12-20net.lo: allow address families to be set on routesMihai Moldovan
X-Gentoo-Bug: 447310 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?d=447310
2012-12-18net.lo: sleep *after* carrier checkMike Frysinger
For devices that are always connected (e.g. ethernet cards), the current carrier always wastes time by sleeping for 1 second. This is because the code sleeps first, then checks for carrier. Invert the order so that we return quickly for devices already active. For devices which are not yet up, there shouldn't be any real difference. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-12-18fsck: simplify skiplist setupMike Frysinger
Use printf rather than a manual for loop. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-12-16localmount: quoting fixesSteve L
X-Gentoo-Bug: 446556 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446556
2012-11-30typo fixesWilliam Hubbs
2012-11-29localmount: only skip unmounting /usr if it was premountedWilliam Hubbs
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-07Whitespace.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-06init.d/hostname: Document checkbashism false positive.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
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-11-06init.d/bootmisc: Another instance of the same pattern matching case.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-06init.d/bootmisc: POSIX XSI shellism.Robin H. Johnson
In a pathname expansion, specifically single-character match, the pure POSIX specification uses '!' as the Negation character where a regular expression would normally be '^'. Regular expression: "a[^a]a" Pathname expansion pattern: "a[!a]a" Reference: IEEE Std 1003.1, 2004 Edition 2. Shell Command Language 2.13 Pattern Matching Notation 2.13.1 Patterns Matching a Single Character > The description of basic regular expression bracket expressions in the > Base Definitions volume of IEEE Std 1003.1-2001, Section 9.3.5, RE > Bracket Expression shall also apply to the pattern bracket expression, > except that the exclamation mark character ( '!' ) shall replace the > circumflex character ( '^' ) in its role in a "non-matching list" in > the regular expression notation. A bracket expression starting with an > unquoted circumflex character produces unspecified results. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-10-31Tmpfiles: create and delete entries once in the boot runlevel.William Hubbs
Initially, we were creating tmpfiles entries in the sysinit runlevel and again in the boot runlevel. Systemd runs the --create and --remove options in one service called systemd-tmpfiles-setup after the local file systems are mounted. Now we have a service called tmpfiles.setup which emulates this. This also closes the bug mentioned below, since we were originally writing to files that were on read-only file systems and that were not available. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 439012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439012
2012-10-25netmount: drop need net from dependenciesWilliam Hubbs
Reported-by: <mattsch@gmail.com> X-Gentoo-Bug: 439658 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439658
2012-10-22oldnet: make the default carrier timeout 0William Hubbs
Some types of interfaces do not have a carrier, so it doesn't make sense to automatically wait for one. Reported-by: <rose@rz.uni-potsdam.de> X-Gentoo-Bug: 438970 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438970
2012-10-19tmfiles: change need dev to use dev.William Hubbs
This is being changed to use for the reason I stated in the previous commit. There is no guarantee that someone is using a device manager.
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-10-19Fix bashism in tmpfilesd scriptsWilliam Hubbs
Reported-by: <pesa@gentoo.org>
2012-10-16Oldnet: the loopback interface does not need sysfsWilliam Hubbs
2012-10-16Migrate /var/run and /var/lock to symlinksWilliam Hubbs
Now that we have full support for tmpfiles.d in OpenRC, we can migrate /var/run and /var/lock to symbolic links to /run and /run/lock respectively.