diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-09-08 11:26:27 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-09-08 11:26:27 +0200 |
commit | 9fe5b4903adcb96859ef357cdeaea61f40f1b4cd (patch) | |
tree | 9582c1d3d4f189e698a5823c016fcaaa918310df /scripts/config-blacklist-module.sh | |
parent | ffd89b34ef3ac592e7af1d5c645e3a3c28854d86 (diff) | |
download | imagefish-9fe5b4903adcb96859ef357cdeaea61f40f1b4cd.tar.gz |
misc
Diffstat (limited to 'scripts/config-blacklist-module.sh')
-rwxr-xr-x | scripts/config-blacklist-module.sh | 2 |
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}/" |