summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* bootmisc: do not run clean_run on VSERVER systemsWilliam Hubbs2013-10-28
| | | | | X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
* loopback: do not run in a prefix or vserverWilliam Hubbs2013-10-28
| | | | | X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
* remove redundant sync callsWilliam Hubbs2013-10-18
| | | | | | | | | | 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
* Add uml keyword to fsck service.Alexander V Vershilov2013-10-14
| | | | | | | 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
* netmount: add -lxc keywordWilliam Hubbs2013-10-08
| | | | Netmount should not run on lxc, thanks to Mark van Dijk <funtoo@internecto.net>.
* FL-786: localmount: support filesystem mounting on openvzDaniel Robbins2013-10-04
|
* init.d: update ignore patternsWilliam Hubbs2013-09-01
| | | | | Remove net.lo* from the ignore pattern since these scripts are no longer part of OpenRC and add loopback and tmpfiles.dev.
* Remove gentoo's net.* scriptsWilliam Hubbs2013-08-13
| | | | | | 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.
* Fix Permission Denied on reading dmesg in an LXC containerFedja Beader2013-08-06
|
* devfs: Add -lxc keywordAlexander V Vershilov2013-07-31
| | | | | Devfs is not needed for LXC, as LXC mounts all required fs on it's own. Reported by specing.
* swapfiles: do not try to unmount all tmpfs mountsWilliam Hubbs2013-07-26
| | | | | | | | 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
* Introduce the tmpfiles.dev serviceWilliam Hubbs2013-07-25
| | | | | | This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
* efivarfs: Support EFI variable access in 3.10 kernels.Robin H. Johnson2013-06-24
| | | | | | | 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>
* fsck: fix typoEugeny Shkrigunov2013-04-27
| | | | | X-Gentoo-Bug: 467158 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=467158
* create loopback serviceWilliam Hubbs2013-04-08
| | | | | The loopback service handles the basic settings for the loopback interface, regardless of the network manager you are using.
* localmount: add "no" in front of network file system typesWilliam Hubbs2013-03-22
| | | | | | | | | 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
* oldnet: convert netmask to decimal numbers in _netmask2cidrYuta SATOH2013-03-08
| | | | | | | | | | 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
* ipfw: change opts variable to extra_commandsWilliam Hubbs2013-03-06
| | | | | | Reported-by: 4glitch@gmail.com X-Gentoo-Bug: 459694 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=459694
* Fix shebangs in services to point to the correct location of runscriptAndrew Gregory2013-02-23
| | | | | | | | 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>
* do not use SYSCONFDIR for binfmt.dAndrew Gregory2013-02-16
| | | | | | | 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>
* consolefont: use setfont to save the current fontAndrew Gregory2013-02-16
| | | | | | | | | 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>
* bootmisc: Skip cleaning /var/run or tmp directories if they are tmpfsWilliam Hubbs2013-02-16
| | | | | | Reported-by: walter@pratyeka.org X-Gentoo-Bug: 454338 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454338
* keymaps: fix the use of loadkeys in the euro fixWilliam Hubbs2013-02-15
| | | | | | | | | | 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
* devfs: Mount the posix message queue file systemWilliam Hubbs2013-02-14
| | | | | | Reported-by: reuben.m@gmail.com X-Gentoo-Bug: 456998 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=456998
* Rename shutdown_network setting to keep_networkWilliam Hubbs2013-02-11
| | | | | | | | | | | 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.
* oldnet: add support for shutdown_network from newnetWilliam Hubbs2013-02-11
| | | | | | | | | | | | | | 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
* oldnet: accomodate rkhunter false positiveWilliam Hubbs2013-02-09
| | | | | | | | | | | | | 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
* sysfs: mount the fusectl file systemWilliam Hubbs2013-02-01
| | | | | | Reported-by: vapier@gentoo.org X-Gentoo-Bug: 453740 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=453740
* remove cruft from /run directoryWilliam Hubbs2013-01-31
| | | | | | | 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.
* net.lo: add ipv6 net and host patternsAlexander Tsoy2012-12-21
| | | | | X-Gentoo-Bug: 442594 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
* net.lo: allow address families to be set on routesMihai Moldovan2012-12-20
| | | | | X-Gentoo-Bug: 447310 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?d=447310
* net.lo: sleep *after* carrier checkMike Frysinger2012-12-18
| | | | | | | | | | 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>
* fsck: simplify skiplist setupMike Frysinger2012-12-18
| | | | | | Use printf rather than a manual for loop. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* localmount: quoting fixesSteve L2012-12-16
| | | | | X-Gentoo-Bug: 446556 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446556
* typo fixesWilliam Hubbs2012-11-30
|
* localmount: only skip unmounting /usr if it was premountedWilliam Hubbs2012-11-29
| | | | | | | | | | 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
* Whitespace.Robin H. Johnson2012-11-07
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/hostname: Document checkbashism false positive.Robin H. Johnson2012-11-06
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/mtab: Another instance of the same pattern matching case.Robin H. Johnson2012-11-06
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/bootmisc: Another instance of the same pattern matching case.Robin H. Johnson2012-11-06
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/bootmisc: POSIX XSI shellism.Robin H. Johnson2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Tmpfiles: create and delete entries once in the boot runlevel.William Hubbs2012-10-31
| | | | | | | | | | | | | | | | 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
* netmount: drop need net from dependenciesWilliam Hubbs2012-10-25
| | | | | | Reported-by: <mattsch@gmail.com> X-Gentoo-Bug: 439658 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439658
* oldnet: make the default carrier timeout 0William Hubbs2012-10-22
| | | | | | | | | 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
* tmfiles: change need dev to use dev.William Hubbs2012-10-19
| | | | | 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.
* devfs: Remove references to specific device managersWilliam Hubbs2012-10-19
| | | | | | | | | | | | | | | 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
* Fix bashism in tmpfilesd scriptsWilliam Hubbs2012-10-19
| | | | Reported-by: <pesa@gentoo.org>
* Oldnet: the loopback interface does not need sysfsWilliam Hubbs2012-10-16
|
* Migrate /var/run and /var/lock to symlinksWilliam Hubbs2012-10-16
| | | | | | 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.
* Add Vim modelineChristian Ruppert2012-10-16
|