[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 05/15] Install udevd and required rules on the stage1 initrd. Remove obsolete /var/state directory.



---
 scripts/mk-images |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 006314f..fc70f56 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -567,7 +567,7 @@ makeinitrd() {
     mkdir -p $MBD_DIR/sys
     mkdir -p $MBD_DIR/tmp
     mkdir -p $MBD_DIR/etc/terminfo/{a,b,d,l,s,v,x}
-    mkdir -p $MBD_DIR/var/state
+    mkdir -p $MBD_DIR/etc/udev/rules.d
     mkdir -p $MBD_DIR/var/run
     mkdir -p $MBD_DIR/var/lock/rpm
 
@@ -651,6 +651,13 @@ EOF
     fi
     install -m 644 $MYLANGTABLE $MBD_DIR/etc/lang-table
     
+    install -s -m 755 $IMGPATH/usr/sbin/udevd.static $MBD_DIR/sbin/udevd
+    install -m 644 $IMGPATH/etc/udev/udev.conf $MBD_DIR/etc/udev/udev.conf
+    for i in 05-udev-early.rules 40-redhat.rules 50-udev-default.rules 64-device-mapper.rules 64-md-raid.rules 80-drivers.rules 95-udev-late.rules ; do
+       [ -f $IMGPATH/etc/udev/rules.d/$i ] && \
+         install -m 644 $IMGPATH/etc/udev/rules.d/$i $MBD_DIR/etc/udev/rules.d/$i
+    done
+
     install -m 644 $LOADERBINDIR/$MYLOADERTR $MBD_DIR/etc/loader.tr
     for i in a/ansi d/dumb l/linux s/screen v/vt100 v/vt100-nav v/vt102 x/xterm x/xterm-color g/gnome ; do
 	[ -f $IMGPATH/usr/share/terminfo/$i ] && \
-- 
1.5.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]