diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-16 09:56:44 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-16 09:56:44 +0100 |
commit | 95b902b657dbce901f01fb97bd3cd52bd61636cb (patch) | |
tree | 3d1924583775128c6f967f5b9b57bb99f10028db /appliance | |
parent | 28e2bceefeedbef82dcc24e60e8a22da0960354a (diff) | |
download | libguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.tar.gz libguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.tar.xz libguestfs-95b902b657dbce901f01fb97bd3cd52bd61636cb.zip |
Reverse sense of whitelist test.
Diffstat (limited to 'appliance')
-rwxr-xr-x | appliance/guestfs-supermin-helper.in | 4 |
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). |