aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config-blacklist-module.sh
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-09-08 11:26:27 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-09-08 11:26:27 +0200
commit9fe5b4903adcb96859ef357cdeaea61f40f1b4cd (patch)
tree9582c1d3d4f189e698a5823c016fcaaa918310df /scripts/config-blacklist-module.sh
parentffd89b34ef3ac592e7af1d5c645e3a3c28854d86 (diff)
downloadimagefish-9fe5b4903adcb96859ef357cdeaea61f40f1b4cd.tar.gz
misc
Diffstat (limited to 'scripts/config-blacklist-module.sh')
-rwxr-xr-xscripts/config-blacklist-module.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/config-blacklist-module.sh b/scripts/config-blacklist-module.sh
index 6e3e812..df92ce2 100755
--- a/scripts/config-blacklist-module.sh
+++ b/scripts/config-blacklist-module.sh
@@ -8,7 +8,7 @@ if test "$image" = ""; then
exit 1
fi
-if virt-cat -a "$image" /etc/grub2-efi.cfg >/dev/null; then
+if virt-cat -a "$image" /etc/grub2-efi.cfg >/dev/null 2>&1; then
bootedit="/etc/grub2-efi.cfg:s/^([ \t]*linux[ ]+[^ ]+)/\1 rd.driver.blacklist=${module}/"
else
bootedit="/boot/extlinux/extlinux.conf:s/append/append rd.driver.blacklist=${module}/"