]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
use "grep" directly without "nm" to drop binutils requirement
authorHarald Hoyer <harald@redhat.com>
Fri, 7 May 2010 08:44:30 +0000 (10:44 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 7 May 2010 08:44:30 +0000 (10:44 +0200)
dracut
dracut.spec
modules.d/40network/installkernel
modules.d/50plymouth/installkernel
modules.d/90kernel-modules/installkernel
modules.d/90multipath/installkernel

diff --git a/dracut b/dracut
index cd524991c7e577e21e646781b5d4587f4c6f4c3d..6d9bf7c07dde3d3873c07a5a9f05e53855828dc6 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -46,8 +46,8 @@ Creates initial ramdisk images for preloading modules
                         firmwares, separated by :
   --kernel-only         Only install kernel drivers and firmware files
   --no-kernel           Do not install kernel drivers and firmware files
-  --strip               Strip binaries in the initramfs (default)
-  --nostrip             Do not strip binaries in the initramfs
+  --strip               Strip binaries in the initramfs
+  --nostrip             Do not strip binaries in the initramfs (default)
   --mdadmconf           Include local /etc/mdadm.conf
   --nomdadmconf         Do not include local /etc/mdadm.conf
   --lvmconf             Include local /etc/lvm/lvm.conf
@@ -155,7 +155,7 @@ fi
 [[ $lvmconf_l ]] && lvmconf=$lvmconf_l
 [[ $dracutbasedir ]] || dracutbasedir=/usr/share/dracut
 [[ $fw_dir ]] || fw_dir=/lib/firmware
-[[ $do_strip ]] || do_strip=yes
+[[ $do_strip ]] || do_strip=no
 # eliminate IFS hackery when messing with fw_dir
 fw_dir=${fw_dir//:/ }
 
index 7a2816d865d876d96a1811cd424a190f1d8c5eac..64a287f17cd03348ee0024652f21d7def0c01be6 100644 (file)
@@ -47,7 +47,6 @@ Requires: module-init-tools >= 3.7-9
 Requires: cpio
 Requires: coreutils
 Requires: findutils
-Requires: binutils
 Requires: grep
 Requires: which
 Requires: mktemp >= 1.5-5
index 514902d67dfc587a0c07afe9948c6fb6b460dbcf..4c7adcd4b20bf84008c5e9c5fd456d01c7621bde 100755 (executable)
@@ -4,8 +4,8 @@
 net_module_test() {
     local net_drivers='eth_type_trans|register_virtio_device'
     local unwanted_drivers='/(wireless|isdn|uwb)/'
-    nm -uPA "$1" | egrep -q $net_drivers && \
-       nm -uPA "$1" | egrep -qv 'iw_handler_get_spy' && \
+    egrep -q $net_drivers "$1" && \
+       egrep -qv 'iw_handler_get_spy' "$1" && \
        [[ ! $1 =~ $unwanted_drivers ]]
 }
 
index 61f2422bfc440fbbffae0e51da313453e8f763bc..9f3291dae6e87797e542bb3589b786cf101fdda2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
 # Include KMS capable drm drivers
 for modname in $(find "$srcmods/kernel/drivers/gpu/drm" -name '*.ko' 2>/dev/null); do
-    nm -uPA $modname | grep -q drm_crtc_init && instmods $modname
+    grep -q drm_crtc_init  $modname && instmods $modname
 done
index 10d3cfca7228479c34d24807c3050b8315b00f35..2171e5a8a18f4072b2fdfa4d96b663143d9723aa 100755 (executable)
@@ -3,7 +3,7 @@ if [[ -z $drivers ]]; then
     block_module_test() {
        local blockfuncs='ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device'
 
-        nm -uPA "$1" | egrep -q "$blockfuncs"
+       egrep -q "$blockfuncs" "$1"
     }
     hostonly='' instmods sr_mod sd_mod scsi_dh scsi_dh_rdac scsi_dh_emc
     hostonly='' instmods pcmcia firewire-ohci
index 4a596f0044ca8f180fd8e1144e160660927c1db3..c2f4ec0db563d3882a7c8f8383af49ffd279b4cb 100755 (executable)
@@ -2,7 +2,7 @@
 
 mp_mod_test() {
     local mpfuncs='scsi_register_device_handler|dm_dirty_log_type_register|dm_register_path_selector|dm_register_target'
-    nm -uPA "$1" | egrep -q "$mpfuncs"
+    egrep -q "$mpfuncs" "$1"
 }
 
 instmods $(filter_kernel_modules mp_mod_test)