forked from pool/grub2
c7ddc4afcf
- Check if default entry need to be corrected for updated distributor version and/or use fallback entry if default kernel entry removed (bsc#1065349) * grub2-check-default.sh * grub2-mkconfig-default-entry-correction.patch - Fix grub2-mkconfig warning when disk is LVM PV (bsc#1071239) * grub2-getroot-scan-disk-pv.patch OBS-URL: https://build.opensuse.org/request/show/569425 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=287
17 lines
647 B
Diff
17 lines
647 B
Diff
Index: grub-2.02~beta2/util/grub-mkconfig.in
|
|
===================================================================
|
|
--- grub-2.02~beta2.orig/util/grub-mkconfig.in
|
|
+++ grub-2.02~beta2/util/grub-mkconfig.in
|
|
@@ -311,6 +311,11 @@ and /etc/grub.d/* files or please file a
|
|
else
|
|
# none of the children aborted with error, install the new grub.cfg
|
|
mv -f ${grub_cfg}.new ${grub_cfg}
|
|
+ # check if default entry need to be corrected for updated distributor version
|
|
+ # and/or use fallback entry if default kernel entry removed
|
|
+ if test -x /usr/sbin/grub2-check-default; then
|
|
+ /usr/sbin/grub2-check-default >&2
|
|
+ fi
|
|
fi
|
|
fi
|
|
|