From 955f9f3d749873b28b2746b1b0cd0e7b940e3399 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Mar 2009 03:20:57 +0100 Subject: [PATCH] udev: create some files at post_install() to make it work. --HG-- extra : convert_revision : cc1110c1893defa3d324012b313b5911cb2c427d --- templates/udev/template | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/udev/template b/templates/udev/template index cd28f88d2df..c489247abfa 100644 --- a/templates/udev/template +++ b/templates/udev/template @@ -31,4 +31,15 @@ post_install() $destdir/usr/share/initramfs-tools/scripts/init-premount/udev install -m 755 $XBPS_TEMPLATESDIR/udev/udev.initramfs-bottom \ $destdir/usr/share/initramfs-tools/scripts/init-bottom/udev + + install -d $destdir/lib/firmware + install -d $destdir/lib/udev/devices/pts + install -d $destdir/lib/udev/devices/shm + mknod -m0666 $destdir/lib/udev/devices/null c 1 3 + mknod -m0600 $destdir/lib/udev/devices/kmsg c 1 11 + ln -s /proc/self/fd $destdir/lib/udev/devices/fd + ln -s /proc/self/fd/0 $destdir/lib/udev/devices/stdin + ln -s /proc/self/fd/1 $destdir/lib/udev/devices/stdout + ln -s /proc/self/fd/2 $destdir/lib/udev/devices/stderr + ln -s /proc/kcore $destdir/lib/udev/devices/core }