void-packages/templates/klibc-udev/files/udev.initramfs-bottom
Juan RP 26a8c1b1fa Added klibc-udev-138 template, for the initramfs.
Move initramfs-tools udev hook to this pkg.

--HG--
extra : convert_revision : d88915bc50cdf9211fae16f09a3b306814c6ed1f
2009-03-08 02:09:37 +01:00

28 lines
495 B
Bash

#!/bin/sh -e
# initramfs premount script for udev
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
# Stop udevd, we'll miss a few events while we run init, but we catch up
pkill udevd
# udevd might have been in the middle of something when we killed it,
# but it doesn't matter because we'll do everything again in userspace
rm -rf /dev/.udev/queue
# Move /dev to the real filesystem
mount -n -o move /dev ${rootmnt}/dev