29 lines
495 B
Bash
29 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
|