2009-02-19 16:10:13 +01: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 16:00:43 +02:00
|
|
|
# Make the udev daemon exit.
|
|
|
|
udevadm control --exit
|
2009-02-19 16:10:13 +01:00
|
|
|
|
2011-04-29 20:26:58 +02:00
|
|
|
# Clean up udev state stuff.
|
|
|
|
udevadm info --cleanup-db
|
|
|
|
|
2009-02-19 16:10:13 +01:00
|
|
|
# Move /dev to the real filesystem
|
|
|
|
mount -n -o move /dev ${rootmnt}/dev
|