首页 > 代码库 > initramfs中的udev脚本分析

initramfs中的udev脚本分析

/usr/share/initramfs-tools/scripts/init-top


#!/bin/sh -e


PREREQS="all_generic_ide blacklist"

prereqs() { echo "$PREREQS"; }

case "$1" in
    prereqs)
    prereqs
    exit 0
    ;;
esac

echo > /sys/kernel/uevent_helper

/lib/systemd/systemd-udevd --daemon --resolve-names=never

udevadm trigger --action=add

# Leave udev running to process events that come in out-of-band (like USB
# connections)

initramfs中的udev脚本分析