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-05-04 14:00:43 +00:00
|
|
|
# Make the udev daemon exit.
|
|
|
|
udevadm control --exit
|
2009-02-19 15:10:13 +00:00
|
|
|
|
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
|