Age | Commit message (Collapse) | Author | Files |
|
fakeraid and lvm
|
|
|
|
|
|
|
|
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This check was removed in the bashification, add it back.
|
|
been activated.
|
|
|
|
No idea why it would output anything, but it does in case of failure.
Suppress the standard error.
|
|
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.
|
|
This is configurable by the new rc.conf option DAEMON_LOCALE.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
It now follows the vim modeline at the bottom of the file.
|
|
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.
|
|
This avoids problems with lack of rw filesystems.
Solves: #FS18153.
|
|
|
|
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.
|
|
this is done by udev since version 155
|
|
No FS reference, but this is what is done upstream (in udev's systemd
service files).
|
|
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).
|
|
|
|
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xssn.at>
|
|
This builds straight out of a git checkout.
Add generated packages to .gitignore
|
|
|
|
|
|
|
|
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. :(
|
|
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.
|
|
Shorten domainname conditional execution.
Use parameter expansion instead of dirname.
Clean up entropy pool saving and system clock saving.
Flatten LVM deactivation if block
|
|
Simplify it, and move that shared code into functions.
Parsing the output of ls is Bad, especially when globbing works just as well
and does not get confused by odd characters in filenames.
bash has arithemetic for loops. Use them instead of while loops for iterating
over arrays.
|
|
|
|
Change the daemon running loop to use a case statement.
This is shorter and easier to read.
Quote daemon names.
Someday, someone may have a daemon name with a space in it.
|
|
Slightly simplify hook-running infrastructure.
Go ahead and declare add_hook and run_hook as readonly functions
to prevent hooks from overwriting them. Too bad bash does not have
lexically scoped variables -- if it does, we could do the same with
the hook_funcs associative array.
If $CONSOLEFONT is not declared, then just return out of set_consolefont.
We do this early so that the entire body of the function is not in an if block.
Replace trivial use of grep with bash regex conditional.
Bash has regex support, and it allows us to replace most trivial
uses of sed, grep, and awk. The fewer processes we create, the faster
we go, and every little bit helps.
I also think it is more readable to use a bash regex for the trivial stuff.
Replace if statement with parameter expansion.
${foo:+-p ${foo}} expands to nothing if foo is not set, -p $foo if foo is set.
Replace slightly too long echo staement with a here document.
This adds a line, but making things more readable is worth it.
Make sourcing functions.d files a tiny bit shorter and faster.
|
|
All that extra checking for the first character being @ is not needed,
simple parameter expansion will trim it off if it is there.
|
|
Calling your args with $* will do nasty things if any of your args
has a space in it. "$@" will always do The Right Thing.
Just test the command directly, don't run it and then grab its exit value.
|
|
|