]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
[PATCH 08/50] Don't load commands into the initrd that are built in to bash.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 13 Feb 2009 12:41:50 +0000 (04:41 -0800)
committerDave Jones <davej@redhat.com>
Mon, 16 Feb 2009 18:56:40 +0000 (13:56 -0500)
No sense in loading commands that will never be used.

dracut

diff --git a/dracut b/dracut
index ef2ca4200fc7e99f4b1e401675b5e85b119eb0ba..0fe028279db215bc9996d30f00086b36126010a0 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -4,6 +4,7 @@
 # Tries to retain some degree of compatibility with the command line
 # of the various mkinitrd implementations out there
 #
+
 # Copyright 2008, Red Hat, Inc.  Jeremy Katz <katzj@redhat.com>
 # GPLv2 header here
 
@@ -66,7 +67,7 @@ fi
 initdir=$(mktemp -d -t initramfs.XXXXXX)
 
 # executables that we have to have
-exe="/bin/bash /bin/mount /bin/mknod /bin/mkdir /sbin/modprobe /sbin/udevd /sbin/udevadm /sbin/nash /bin/kill /sbin/pidof /bin/sleep /bin/echo /usr/sbin/chroot"
+exe="/bin/bash /bin/mount /bin/mknod /bin/mkdir /sbin/modprobe /sbin/udevd /sbin/udevadm /sbin/nash /sbin/pidof /bin/sleep /usr/sbin/chroot"
 lvmexe="/sbin/lvm"
 cryptexe="/sbin/cryptsetup"
 # and some things that are nice for debugging