26a8c1b1fa
Move initramfs-tools udev hook to this pkg. --HG-- extra : convert_revision : d88915bc50cdf9211fae16f09a3b306814c6ed1f
28 lines
495 B
Bash
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
|