forked from pool/grub2
Accepting request 198441 from home:michael-chang:branches:Base:System
- use new update-bootloader option --reinit to install and update bootloader config - refresh grub2-secureboot-no-insmod-on-sb.patch to fobid module loading completely. OBS-URL: https://build.opensuse.org/request/show/198441 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=52
This commit is contained in:
12
grub2.spec
12
grub2.spec
@@ -457,7 +457,11 @@ if [ "x${LOADER_TYPE}" = "xgrub" ]; then
|
||||
|
||||
elif [ "x${LOADER_TYPE}" = "xgrub2" ]; then
|
||||
|
||||
# It's enought to call update-bootloader --refesh to install grub2 and update it's config
|
||||
# It's enought to call update-bootloader to install grub2 and update it's config
|
||||
# Use new --reinit, if not available use --refresh
|
||||
# --reinit: install and update bootloader config
|
||||
# --refresh: update bootloader config
|
||||
/sbin/update-bootloader --reinit 2>&1 | grep -q 'Unknown option: reinit' &&
|
||||
/sbin/update-bootloader --refresh || true
|
||||
fi
|
||||
%endif
|
||||
@@ -481,7 +485,11 @@ if [ "x${LOADER_TYPE}" = "xgrub2-efi" ]; then
|
||||
|
||||
fi
|
||||
|
||||
# It's enough to call update-bootloader --refesh to install grub2 and update it's config
|
||||
# It's enough to call update-bootloader to install grub2 and update it's config
|
||||
# Use new --reinit, if not available use --refresh
|
||||
# --reinit: install and update bootloader config
|
||||
# --refresh: update bootloader config
|
||||
/sbin/update-bootloader --reinit 2>&1 | grep -q 'Unknown option: reinit' &&
|
||||
/sbin/update-bootloader --refresh || true
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user