prepare-root.sh: fix fwupd uefi.conf check

This commit is contained in:
Harald Hoyer 2018-10-23 14:16:23 +02:00
parent da2129350d
commit ca335b1137

View file

@ -675,7 +675,9 @@ if [[ -f "$sysroot"/etc/modprobe.d/kvm.conf ]]; then
sed -i -e 's/#options/options/g' "$sysroot"/etc/modprobe.d/kvm.conf sed -i -e 's/#options/options/g' "$sysroot"/etc/modprobe.d/kvm.conf
fi fi
if [[ -f /etc/fwupd/uefi.conf ]]; then #---------------
# tweak fwupd to not need the shim
if [[ -f "$sysroot"/etc/fwupd/uefi.conf ]]; then
sed -i -e 's#RequireShimForSecureBoot=.*#RequireShimForSecureBoot=false#g' \ sed -i -e 's#RequireShimForSecureBoot=.*#RequireShimForSecureBoot=false#g' \
"$sysroot"/etc/fwupd/uefi.conf "$sysroot"/etc/fwupd/uefi.conf
fi fi