aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
AgeCommit message (Collapse)AuthorFiles
2011-03-16Add UDEV_TIMEOUT optionSeblu1
This allow to set a custom timeout for udev events processing. Close FS#20764 Signed-off-by: Seblu <seblu@seblu.net>
2011-03-16Add davfs to the list of network filesystems in netfsSeblu1
Close FS#19952 Signed-off-by: Seblu <seblu@seblu.net>
2011-02-27Software RAID detection is now triggered via USEMDADM config var like ↵Seblu1
fakeraid and lvm
2011-02-27Implement FakeRAID detection at startupSeblu1
2011-02-27Remove grep use where a simple env var check can be madeSeblu1
2011-02-27Improve encrypted filesystem detectionSeblu1
2011-02-27Allow forcefsck on kernel cmdline to have same effect as touching /forcefsckSeblu1
2011-02-01Check whether crypttab contains anything before processing it.2011.02.1Thomas Bächler1
This check was removed in the bashification, add it back.
2011-01-28Only call activate_vgs a second time if any logical volumes have actually ↵Thomas Bächler1
been activated.
2011-01-27Suppress the output of cryptsetup isLuks.Thomas Bächler1
No idea why it would output anything, but it does in case of failure. Suppress the standard error.
2011-01-27Remove all copyright and license hints.Thomas Bächler1
The original version was incorrect and misleading. The new one is confusing and too long. Instead of printing it on boot, we should document license handling in the beginner's guide.
2011-01-26Change copyright and license information2011.01-1Thomas Bächler1
The copyright makes no sense, as a variety of people worked on Arch. Remove it. Clarify that software distributed in Arch is often distributed under licenses different than the GPL.
2011-01-26Fix isLuks checkThomas Bächler1
The check was wrong, every device was treated as LUKS. Also remove the _isluks variable, as now it is not used by the SWAP sanity check anymore.
2011-01-26Change SWAP sanity check to use blkid in favor of cryptsetupThomas Bächler1
This improves the sanity check before overwriting a partition with randomly encrypted swapspace. A device will only be overwritten if blkid finds no valid file system on it, otherwise the process will be aborted.
2010-12-13Use modprobe's --all flag instead of looping.Dave Reisner1
Filter blacklisted modules with a parameter expansion and add an extra conditional to modprobe to only act if the resultant expansion has a value. It's important that no quoting takes place here, or else a variable is defined with a null terminator and which will cause the extra conditional to pass and modprobe will error out. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-13PATH: export a standard path in rc.sysinitTom Gundersen1
This is usefull for udev and other processes that do not get a PATH set by /etc/profile. The particular choice of paths to export was taken from systemd, the rationale being that systemd is designed to be compatible with all the major distros and in particular with udev. The paths are also the same as set as standard in /etc/profile With this patch we handle the PATH variable similarly to what systemd does (in their case the variable is set in init). Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-07Unify capitalization of 'Udev'Dan McGee1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-06cryptsetup: print name of device being openedHeiko Baums1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-06cryptsetup: abort if LUKS is found on swap partitionHeiko Baums1
Variable was not set before use, so the check for LUKS always failed. As noted, this could be dangerous. Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-06cryptsetup: read keys for non-root LUKS partitions as raw data from block deviceHeiko Baums1
For LUKS encrypted root partitions it is possible to store a keyfile hidden as raw data onto a USB stick with the dd command. This has the advantage, that the key is saved on a USB stick, but can't be found be just mounting the USB stick. The appropriate line in /etc/crypttab is similar to the kernel parameter in /boot/grub/menu.lst: home/dev/sdaXBLOCKDEVICE:OFFSET:SIZE [teg: fixed whitespace and expanded paths to binaries] Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-06cryptsetup: fix indentationTom Gundersen1
It now follows the vim modeline at the bottom of the file.
2010-12-06lvm: enable/disable monitoring of lvm2 groupsTom Gundersen1
Monitoring does not work when /var is mounted ro, so only enable monitoring when we know that /var is rw. Thanks to Thomas Bächler for pointing this out.
2010-12-06mount: forbid suid,exec,dev from /proc and /sysTom Gundersen1
2010-12-06locale: set the sysfs value default_utf8 rather than enabling/disabling utf8 ↵Tom Gundersen1
in locale.sh This should go some way towards obsoleting /etc/profiled.d/locales.sh (FS#20911). The remaining, and admittedly main, obstacle is proper inheritance of LANG, which Roman is working on.
2010-12-06udev: do not copy /lib/udev/devices/* to /devTom Gundersen1
this is done by udev since version 155
2010-12-06udevadm: retry failed udev events after filesystems have been mountedTom Gundersen1
No FS reference, but this is what is done upstream (in udev's systemd service files).
2010-12-06udevadm: trigger events of type subsystems as well as devicesTom Gundersen1
The standard type to trigger is devices. This patch makes the type explicit and also triggers events of type subsystems. This is what is done upstream (in udev's systemd service files).
2010-09-08rc.sysinit: condense calls to mkdir and chmodDave Reisner1
2010-09-08Fix two typos introduced by the latest patch seriesThomas Bächler1
2010-09-07Remove a redundant subshell, see FS#20016Thomas Bächler1
2010-07-23Rewrite /etc/crypttab processing.Victor Lowther1
Split out reading /etc/crypttab and procssing the individual lines into their own helper functions, and bashify the resulting shorter code. Processing this file is still ugly, though. :(
2010-07-11Bashify rc.sysinit, part 1Victor Lowther1
Use bash-style conditionals when setting up the hardware clock. Trying to stick with POSIX syntax only just slows things down. Bashify module loading in rc.sysinit. bashify bringing up the loopback adaptor. Simplify test to see if we should assemble arrays at startup find has a builtin delete action. Use it instead of exec'ing rm. Flatten adding persistent rules.
2010-07-06Use findmnt to make mtab2010.07-1Gerardo Exequiel Pozzi1
Use findmnt command new in util-linux-ng 2.18 to make mtab based on /proc/self/mountinfo. Otherwise use current method. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> (added a check whether /proc/self/mountinfo exists -- Thomas)
2010-06-09Initialize /etc/mtab by copying /proc/mountsThomas Bächler1
Our current process of initializing /etc/mtab is hackish and probably error-prone, replace it by simply copying /proc/mounts.
2010-06-09Rewrite early RTC device creationThomas Bächler1
Creating the RTC device will result in an error if devtmpfs is used, as it already exists after loading the module. The new code skips the mknod if the device is already present. Additionally to rtc-cmos, we now also try to load rtc and genrtc, as some custom kernels use the "old" misc RTC device instead of the newer RTC class. In this case, the created device is also different. This should fix FS#18078.
2010-06-08Do not redirect the standard error of fsck to /dev/null by defaultThomas Bächler1
This sets FSCK_STDERR to /dev/stdout, but still makes it possible to override this behaviour in a hook.
2010-06-03Add --action=add to udevadm trigger2010.06-1Thomas Bächler1
This is necessary as the new udev defaults to --action=change which breaks network device renaming.
2010-06-03Only mount /proc, /sys and /dev if they haven't been mounted already, use ↵Thomas Bächler1
devtmpfs instead of tmpfs if supported by the kernel
2010-05-18Include _netdev option in NETFS list when calling fsckDan McGee1
We don't want fsck looking at any network device, and we would otherwise check things like iSCSI devices during boot before the network was up. This doesn't quite work. Fixes FS#17887. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-03encryption: Look for cryptsetup in various places2010.05-1Thomas Bächler1
The cryptsetup binary will move to /sbin/cryptsetup and the static binary will be removed. Add code that will try /sbin/cryptsetup first, then /usr/sbin/cryptsetup and fall back to the old /sbin/cryptsetup.static if everything else fails.
2010-02-16Make consolefont code deferrable to avoid destroying splashKurt J. Bosch1
2010-02-16Correct previous patch to get fsck fail into splashKurt J. Bosch1
2010-02-15Add support for the fsck progress file descriptorKurt J. Bosch1
2010-01-24Extend copyright date to 2010Thomas Bächler1
2009-11-10rc.sysinit: remove unnecessary adjtime creationDan McGee1
This is an Arch initscripts original (commit 98c76a4), but is not actually necessary for hwclock to operate correctly, so kill it. The file is created automatically when `hwclock --systohc` is invoked. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10rc.sysinit: add and clarify clock commentsDan McGee1
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10rc.sysinit: background hwclock callsDan McGee1
hwclock calls appear to block somewhere between 1 and 2 seconds when we have back-to-back calls. My theory (without looking at the code) is that hwclock has to synchronize to the 1 second intervals of the hardware clock, so it can sometimes take up to a second to complete. To get around this unpleasant behavior, we can background the calls at point X in the boot sequence, and then later at point Y in the script (when we absolutely need the clock actions to be complete), we wait on the subprocess. This allows the rest of the boot sequence, after the hwclock code block, to continue until the point where we wait on the subprocess. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-07Remove redundant call to vgscan - this also fixes a "wrong" symlink in ↵2009.11-1Thomas Bächler1
combination with the new udev-based device mapper node creation
2009-11-06Correct last commit: Unset the STARTUP=1 variable in udevadm control only ↵Thomas Bächler1
after udev has settled
2009-11-05Set STARTUP=1 environment variable on initial udev triggering, required by ↵Thomas Bächler1
latest device-mapper rules