Bugzilla – Attachment 48698 Details for
Bug 115133
udev error messages in kernel log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
comment out rules in initramfs
mkinitrd-comment-out-rules-02.patch (text/plain), 2.21 KB, created by
Kay Sievers
on 2005-09-03 14:36:11 UTC
(
hide
)
Description:
comment out rules in initramfs
Filename:
MIME Type:
Creator:
Kay Sievers
Created:
2005-09-03 14:36:11 UTC
Size:
2.21 KB
patch
obsolete
>--- a/mkinitrd >+++ b/mkinitrd >@@ -1126,6 +1126,8 @@ > fi > # fill the initrd > mkdir -p $tmp_mnt/{sbin,bin,etc,dev,proc,sys} >+ mknod $tmp_mnt/dev/console c 5 1 >+ mknod $tmp_mnt/dev/null c 1 3 > > # Create a dummy /etc/mtab for mount/umount > echo -n > $tmp_mnt/etc/mtab >@@ -1230,8 +1232,7 @@ > fi > done > mkdir -p $tmp_mnt/lib/klibc/sbin >- for klibc_bin in ata_id scsi_id usb_id \ >- vol_id; do >+ for klibc_bin in ata_id scsi_id usb_id vol_id dasd_id; do > cp_bin /lib/klibc/sbin/$klibc_bin \ > $tmp_mnt/lib/klibc/sbin > if [ ! -e $tmp_mnt/sbin/$klibc_bin ]; then >@@ -1266,8 +1267,8 @@ > cp_bin /usr/share/mkinitrd/hotplug.sh $tmp_mnt/sbin/hotplug.sh > fi > >- # all dev nodes belong to root, according to udev.permissions >- # but some may be owned by a group other than root >+ # all dev nodes belong to root, but some may be >+ # owned by a group other than root > # getent passwd | sed '/^root:/s/^\([^:]\+\):[^:]*:\([^:]\+\):\([^:]\+\):.*/\1::\2:\3:::/p;d' > $tmp_mnt/etc/passwd > echo 'root::0:0:::' > $tmp_mnt/etc/passwd > getent group | sed 's/^\([^:]\+\):[^:]*:\([^:]\+\):.*/\1::\2:/' > $tmp_mnt/etc/group >@@ -1359,11 +1360,7 @@ > echo "udev_root=\"/dev\"" > $tmp_mnt/etc/udev/udev.conf > echo "udev_db=\"/dev/.udevdb\"" >> $tmp_mnt/etc/udev/udev.conf > echo "udev_rules=\"/etc/udev/rules.d\"" >> $tmp_mnt/etc/udev/udev.conf >- cp /etc/udev/rules.d/* $tmp_mnt/etc/udev/rules.d >- # comment out binaries not available in initrd >- for file in $tmp_mnt/etc/udev/rules.d/*; do >- sed 's@\(.*/usr/.*\)@#(mkinitrd) \1@g' -i $file >- done >+ cp /etc/udev/rules.d/*.rules $tmp_mnt/etc/udev/rules.d > fi > > if [ "$mkinit_type" = "ramfs" ] ; then >@@ -1525,6 +1522,20 @@ > fi > fi > >+ if [ -n "$use_udev" ] ; then >+ # comment out rules with tools not available in initramfs >+ for tool in $(sed 's:.*"\(/.*bin/[^ "]*\).*:\1:' /etc/udev/rules.d/*.rules | grep '^/.*bin/' | sort -u); do >+ if [ -x "$tmp_mnt$tool" ]; then >+ # tool exists, keep the rule >+ continue >+ fi >+ # comment out all rules using this tool >+ for file in $tmp_mnt/etc/udev/rules.d/*.rules; do >+ sed "s@\(.*$tool.*\)@#(mkinitrd) \1@" -i $file >+ done; >+ done >+ fi >+ > cat /dev/null > $linuxrc > chmod 755 $linuxrc >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 115133
:
48698
|
48709