From 95b902b657dbce901f01fb97bd3cd52bd61636cb Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 16 Jun 2009 09:56:44 +0100 Subject: [PATCH] Reverse sense of whitelist test. --- appliance/guestfs-supermin-helper.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appliance/guestfs-supermin-helper.in b/appliance/guestfs-supermin-helper.in index 1384ef6..87fb688 100755 --- a/appliance/guestfs-supermin-helper.in +++ b/appliance/guestfs-supermin-helper.in @@ -64,11 +64,11 @@ cp "$sourcedir"/initramfs.@REPO@.@host_cpu@.supermin.img "$initrd" exec 5<"$sourcedir"/kmod.whitelist whitelist= while read kmod 0<&5; do - whitelist="$whitelist -a -not -name $kmod" + whitelist="$whitelist -o -name $kmod" done exec 5<&- -find "$modpath" -not -name '*.ko' -o \( -name '*.ko' $whitelist \) -a -print0 | +find "$modpath" \( -not -name '*.ko' $whitelist \) -a -print0 | cpio --quiet -o -0 -H newc >> "$initrd" # Host files (3). -- 1.8.3.1