Added klibc-udev-138 template, for the initramfs.
Move initramfs-tools udev hook to this pkg. --HG-- extra : convert_revision : d88915bc50cdf9211fae16f09a3b306814c6ed1f
This commit is contained in:
parent
9d6298398c
commit
26a8c1b1fa
6 changed files with 92 additions and 16 deletions
28
templates/klibc-udev/files/udev.initramfs-bottom
Normal file
28
templates/klibc-udev/files/udev.initramfs-bottom
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue