udev: add initramfs-tools, update depends.
--HG-- extra : convert_revision : 2450b2c23182dd801dedb579b86ae3e40c3abdb9
This commit is contained in:
parent
b8b01d0e77
commit
a392f5f9f4
4 changed files with 127 additions and 1 deletions
28
templates/udev/udev.initramfs-bottom
Normal file
28
templates/udev/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