archboot/usr/lib/initcpio/hooks/arch_base

30 lines
803 B
Text
Raw Normal View History

2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
2012-09-10 21:59:22 +02:00
run_earlyhook() {
udevd --daemon --resolve-names=never
udevd_running=1
}
2007-02-22 23:46:50 +01:00
run_hook ()
{
# fixing some symlinks
2010-07-11 17:44:21 +02:00
# fix x86_64 symlink on x86_64
[ "$(uname -r)" = "x86_64" ] && ln -s /usr/bin/setarch /usr/bin/x86_64
2009-05-08 08:29:43 +02:00
# fix vi symlink
ln -s /usr/bin/vim /usr/bin/vi
2012-07-31 15:28:25 +02:00
# disable motd from login, pam does show motd already
touch /root/.hushlogin
2012-09-10 21:59:22 +02:00
# these static devices are created for convenience, to autoload the modules if necessary
# /dev/loop0
mknod -m 0660 /dev/loop0 b 7 0
# trigger udev events
msg ":: Triggering uevents..."
udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle
2007-02-22 23:46:50 +01:00
}
2012-09-10 21:59:22 +02:00
run_cleanuphook() {
udevadm control --exit
udevadm info --cleanup-db
}