summaryrefslogtreecommitdiffstats
path: root/appliance
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-06-16 09:56:44 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-06-16 09:56:44 +0100
commit95b902b657dbce901f01fb97bd3cd52bd61636cb (patch)
tree3d1924583775128c6f967f5b9b57bb99f10028db /appliance
parent28e2bceefeedbef82dcc24e60e8a22da0960354a (diff)
downloadlibguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.tar.gz
libguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.tar.xz
libguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.zip
Reverse sense of whitelist test.
Diffstat (limited to 'appliance')
-rwxr-xr-xappliance/guestfs-supermin-helper.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/appliance/guestfs-supermin-helper.in b/appliance/guestfs-supermin-helper.in
index 1384ef66..87fb6882 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).