2009-02-19 15:10:13 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
# initramfs premount script for udev
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
# Output pre-requisites
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2011-04-29 18:26:58 +00:00
|
|
|
# Kill the udev daemon.
|
2009-02-19 15:10:13 +00:00
|
|
|
pkill udevd
|
|
|
|
|
2011-04-29 18:26:58 +00:00
|
|
|
# Clean up udev state stuff.
|
|
|
|
udevadm info --cleanup-db
|
|
|
|
|
2009-02-19 15:10:13 +00:00
|
|
|
# Move /dev to the real filesystem
|
|
|
|
mount -n -o move /dev ${rootmnt}/dev
|