console: configure console after modules have been loaded

This should probably be fixed elsewhere, but for now only configure
the console once the KMS drivers have been loaded to avoid the settings
getting lost.

Signed-off-by: Tom Gundersen <teg@jklm.no>
fix /forcefsck logic with initcpio fsck hook

Currently, using "shutdown -F -r now" with fsck initcpio hook doesn't make a
full fsck on reboot.

Initscripts hook check if /run/initramfs/root-fsck is present to add -M option
to fsck which disable check of mounted filesystem. Initcpio doesn't check
/forcefsck file and create root-fsck file with a simple fsck check.

Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
tmpfiles,sysctl,binfmt: use the systemd tools

No point in reinventing the wheel.

These and other tools are shipped in the systemd-tools
package. Functionality should be unchanged, but we no
longer have to maintain the code.

Signed-off-by: Tom Gundersen <teg@jklm.no>
vconsole: use the systemd tool

Signed-off-by: Tom Gundersen <teg@jklm.no>
random-seed: use the systemd tool

Signed-off-by: Tom Gundersen <teg@jklm.no>
tmpfiles: let systemd-tools ship most tmpfiles.d entries

We only have one that is initsrcipts specific. Rename the tmpfiles
snippet from arch.conf to initscripts.conf as this is more accurate.

Signed-off-by: Tom Gundersen <teg@jklm.no>
add support for modules-load.d directories

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
systemd: correct some paths

Signed-off-by: Tom Gundersen <teg@jklm.no>
man: drop duplicate manpages

These are now shipped with systemd-tools.

Signed-off-by: Tom Gundersen <teg@jklm.no>
fix another wrong path

Signed-off-by: Tom Gundersen <teg@jklm.no>
udev: fix path so systemd can drop a symlink

Signed-off-by: Tom Gundersen <teg@jklm.no>
Makefile: fix
module-load: silence

We don't need to see all modules inserted on every boot.

Signed-off-by: Tom Gundersen <teg@jklm.no>
use systemd-remount-fs to remount root

This has the added bonus of scanning /etc/fstab and remounting API
filesystems should they be explicitly defined with extra options.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
remove checks for /var/run and /var/lock as symlinks

These are shipped as symlinks by filesystem 2012.06, so these checks are
no longer needed.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
check for a loaded kernel on reboot

Explicitly pass "kexec" to the shutdown script if we detect a preloaded
kernel already in memory. We mask read errors for custom kernels where
kexec is not available.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
avoid check for /sys/block

This is a deprecated path in sysfs, and the check is illogical.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
rc.sysinit: remove warnings

These were useful in a transition period, but no need to keep them around.

If /usr is not mounted we probably won't even get this far. If devtmpfs is not supported
the previous mount of /dev would have given an errormessage.

This was prompted by a suggeston from Igor Podlesny to improve on the error handling, which
made me realise we could drop it.

Signed-off-by: Tom Gundersen <teg@jklm.no>
PKGBUILD: remove dep on grep

We no longer use grep.

Suggested-by: Igor Podlesny <for.poige+archlinux@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
rc.sysinit: look for correct root fsck marker

This has been broken since its was added back in 3dbbd1e2.

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