summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-04mtab: don't write to mtab if it is a symlinkTom Gundersen
In the future /etc/mtab should be a symlink to /proc/self/mounts, add support for this in rc.sysinit to be prepared. While strictly not needed, this makes it clear that the functionality can be removed once we move over to using symlinks. This functionality is expected with the next release of util-linux (2.20), but is already available in the current version if the experimental libmount support is enabled. v2: simplified after suggestion from Seblu. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-04-01hotplug: properly clear the path to hotplug/uevent_helperTom Gundersen
/proc/sys/kerne/hotplug has been deprecated (moved to /sys/kernel/uevent_helper) since 2.6.16. This updates it. Note, this should not be necessary, as there is no reason this string should not already be empty. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-04-01Revert "udevadm: retry failed udev events after filesystems have been mounted"Tom Gundersen
This revert commit 258935d3ee996b0790f39551e6b56596db71c9a8. This follows upstream commit baf2b4 where the systemd unit udev-retry.service is removed, and upstream commit 864fde where the --failed logic is deprecated alltogether. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-04-01status: synchronise the status messageTom Gundersen
This trivial patch moves the start of the LOCALE status message to before the first command. This should not make a difference, as all the commands should be instantaneos, but might be helpful in case of a bug. v2: simplified after suggestion from Seblu Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-30Merge branch 'hwclock-from-kurt' into arch-masterTom Gundersen
Conflicts: rc.shutdown rc.sysinit
2011-03-30Change hardware clock default to UTCKurt J. Bosch
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-30Make hwclock --adjust as well as --systohc optional (FS#13684)Kurt J. Bosch
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29rc.sysinit: condense calls to rmDave Reisner
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29network: cleanup variable declarationsDave Reisner
* replace use of eval with variable indirection * scope variables to functions Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29use bash's kill builtin instead of /bin/killDave Reisner
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29whitespace cleanupDave Reisner
* adhere to a consistant vim modeline * use top-right/bottom-left braces for functions Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29Allow loading of multiple keymaps when LOCALE is UTF-8Seblu
Close FS#23373. Signed-off-by: Seblu <seblu@seblu.net> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-17udev: do not automatically save persistent net/cd udev rules to /etc on bootTom Gundersen
udev contains rules to generate persistent symlinks, if they do not work as intendend this should be reported upstream. Furthermore, upstream discourages using /dev/.udev as its format might change at any time. As of upstream commit 5f59fa0900a5 the location has changed to /dev/.run/udev, so we would have to make a change either way. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-16Add BTRFS support in initscriptsSeblu
Use btrfs instead of btrfsctl. See: https://btrfs.wiki.kernel.org/index.php/FAQ#How_do_I_do....3F Close FS#19792 Signed-off-by: Seblu <seblu@seblu.net>
2011-03-16Add UDEV_TIMEOUT optionSeblu
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 netfsSeblu
Close FS#19952 Signed-off-by: Seblu <seblu@seblu.net>
2011-03-16PKGBUILD: remove unnecessary dependsDave Reisner
* sed and awk are no longer used * ncurses is indirectly provided by readline, but readline might not be compiled against ncurses Close FS#22966 Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Seblu <seblu@seblu.net>
2011-03-16Use dhcpcd -k instead of killAndrea Scarpino
2011-02-27Software RAID detection is now triggered via USEMDADM config var like ↵Seblu
fakeraid and lvm
2011-02-27Implement FakeRAID detection at startupSeblu
2011-02-27Remove grep use where a simple env var check can be madeSeblu
2011-02-27Improve encrypted filesystem detectionSeblu
2011-02-27Allow forcefsck on kernel cmdline to have same effect as touching /forcefsckSeblu
2011-02-10Added missing else clause in set_consolefont functionEric Bélanger
The else clause was missing in the return value test. This caused the status to remain at BUSY instead of being changed to DONE for systems where CONSOLEMAP was not used. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
2011-02-01Remove MOD_BLACKLIST from rc.confDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-01Check whether crypttab contains anything before processing it.2011.02.1Thomas Bächler
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ächler
been activated.
2011-01-27Fix crypttab option column processing.Thomas Bächler
2011-01-27Suppress the output of cryptsetup isLuks.Thomas Bächler
No idea why it would output anything, but it does in case of failure. Suppress the standard error.
2011-01-27Fix run_hook and add_hook definitions.Thomas Bächler
This patch does 3 things: 1) Use declare -fr instead of -r, as -r does not affect functions. 2) Make sure everything is only defined once, as you cannot redefine a read-only function. 3) Fix indentation.
2011-01-27Allow setting the locale during boot and daemon startup.Thomas Bächler
This is configurable by the new rc.conf option DAEMON_LOCALE.
2011-01-27Remove all copyright and license hints.Thomas Bächler
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ächler
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ächler
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ächler
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 Reisner
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 Gundersen
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-13Add support for serial consoleGerardo Exequiel Pozzi
9600 because is the default speed when no other parameter than console=ttyS0 is used. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2010-12-07Unify capitalization of 'Udev'Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-06cryptsetup: print name of device being openedHeiko Baums
Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-12-06cryptsetup: abort if LUKS is found on swap partitionHeiko Baums
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 Baums
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 Gundersen
It now follows the vim modeline at the bottom of the file.
2010-12-06lvm: enable/disable monitoring of lvm2 groupsTom Gundersen
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-06lvm: run vgchange in sysinit modeTom Gundersen
This avoids problems with lack of rw filesystems. Solves: #FS18153.
2010-12-06mount: forbid suid,exec,dev from /proc and /sysTom Gundersen
2010-12-06locale: set the sysfs value default_utf8 rather than enabling/disabling utf8 ↵Tom Gundersen
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 Gundersen
this is done by udev since version 155
2010-12-06udevadm: retry failed udev events after filesystems have been mountedTom Gundersen
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 Gundersen
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).