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

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



Bill Nottingham (notting redhat com) said: 
> Jeremy Katz (katzj redhat com) said: 
> > What type of errors?
> 
> Generally, RUN commands failing due to no volume_id, etc. (for making
> /dev/by-id/... that we don't care about.

Updated patchset:

commit 4b6eae5024035b3ca7313e23eee2baaf2ddd6cec
Author: Bill Nottingham <notting redhat com>
Date:   Thu Dec 6 16:15:43 2007 -0500

    Install udevd and required rules on the stage1 initrd. Remove obsolete /var/state directory.

diff --git a/scripts/mk-images b/scripts/mk-images
index 55c82f5..e3fe908 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -557,7 +557,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
 
@@ -639,6 +639,14 @@ makeinitrd() {
     install -m 644 $IMGPATH/etc/passwd $MBD_DIR/etc/passwd
     install -m 644 $IMGPATH/etc/group $MBD_DIR/etc/group
 
+    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 $IMGPATH/etc/udev/rules.d/* ; do
+       install -m 644 $i $IMGPATH/etc/udev/rules.d/$i $MBD_DIR/etc/udev/rules.d/${i##*/}
+    done
+    rm -f $MBD_DIR/etc/udev/rules.d/*persistent*
+    rm -f $MBD_DIR/etc/udev/rules.d/*generator*
+
     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 ] && \


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