Keep modules.devname needed for on-demand module loading

Otherwise we need to modprobe module manually.
(Particulary I need this for archiso for using /dev/loop-control)

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
dsdt: remove hook. this has been defunct for years

Refer to commit 9a9e0d68555 in the kernel where Linus removes this and
says "to be revisited later". The only option (currently) is to built
this into your kernel image.

Suggested by FS#27906.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
udev: update for udev 176

- firmware handling is now a udevd builtin
- udevadm may move -- let a path lookup find it

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
base: add findmnt as a part of the base layout

This is required for mounting a separate /usr. While the shutdown hook
is essentially a soft requirement for a separate /usr, we shouldn't
break init.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
init: mount separate /usr

Use findmnt to detect the existance of a separate /usr partition
existing in the real root. If it does exist, fetch the options for it
and mount it. This currently makes a lot of assumptions and won't be
very friendly towards something such as a dm-crypt device.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
autodetect: try to find /usr partition fstype

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Update PS1 ramfs -> rootfs

This is cosmetic change, but using rootfs is more correct than ramfs.
[Rootfs is a special instance of ramfs or tmpfs, if that is enabled]

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
init: drop support for non-devtmpfs

udev does not support this as of udev-176, so there is no point in
pretending it will work.

This also drops devtmpfs_mounted=1, so any custom hooks that use this
would have to be updated (no official hooks are affected).

Signed-off-by: Tom Gundersen <teg@jklm.no>
fsck: add helper for usr if different fs from root

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
man: replace refs to kernel26 with linux, et al

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
shutdown: make reboot the default action

systemd passes 'kexec' on 'systemctl kexec' which isn't being caught.
Catch the few possible verbs for a halt, and let everything else default
to trying a kexec; falling back on a reboot.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
mkinitcpio: obsolete install as a buildhook function

All official hooks have been using build() for quite some time now.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
install/base: drop support for m-i-t

Install kmod in /usr/bin and provide symlinks for all the applets to the
kmod multi-call.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
mkinitcpio.conf: add note about separate /usr, fsck as default

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
avoid absolute paths in add_binary calls

This makes us more resilient against path changes -- add_binary is smart
enough to resolve the path for us.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
autodetect: remove hack to exclude {ata,ide}-generic

In particular, skipping ata-generic causes some macbooks to not boot.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
function: avoid applying --try to all modules

An error in logic here would cause the --try flag to be passed to all
modules after the first, if a hook added modules ending with a '?'.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
init_functions: avoid using fsck_ret to check 0

our fsck_ret function would always return true when passed 0, which
clearly isn't what we want. Use a simple string compare instead.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
init: use fastboot, not skip to avoid fsck

Move this logic inside fsck_device as well, so that fastboot skips a
possible fsck on the /usr partition as well.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
fsck: fix copypasta error in picking /usr fsck helper

Signed-off-by: Dave Reisner <dreisner@archlinux.org>