rm -fr -- /newrun
fi
+if command -v kmod >/dev/null 2>/dev/null; then
+ kmod static-nodes --format=tmpfiles 2>/dev/null | \
+ while read type file mode a a a majmin; do
+ case $type in
+ d)
+ mkdir -m $mode -p $file
+ ;;
+ c)
+ mknod -m $mode $file $type ${majmin%:*} ${majmin#*:}
+ ;;
+ esac
+ done
+fi
+
trap "action_on_fail Signal caught!" 0
[ -d /run/initramfs ] || mkdir -p -m 0755 /run/initramfs
install() {
local _d
+
dracut_install mount mknod mkdir sleep chroot \
sed ls flock cp mv dmesg rm ln rmmod mkfifo umount readlink setsid
inst $(command -v modprobe) /sbin/modprobe
- dracut_install -o findmnt less
+ dracut_install -o findmnt less kmod
if [ ! -e "${initdir}/bin/sh" ]; then
dracut_install bash