forked from pool/grub2
957b4bf706
- Switch to '--no-hostonly' when creating the ZIPL initrd in the KIWI build environment to avoid some potential issues due to the missing modules * grub2-s390x-set-hostonly.patch OBS-URL: https://build.opensuse.org/request/show/1191065 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=510
15 lines
453 B
Diff
15 lines
453 B
Diff
--- a/util/grub-mkconfig.in
|
|
+++ b/util/grub-mkconfig.in
|
|
@@ -363,6 +363,11 @@
|
|
cat ${grub_cfg}.new > ${grub_cfg}
|
|
umask $oldumask
|
|
rm -f ${grub_cfg}.new
|
|
+ # 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
|
|
sync_fs_journal || true
|
|
fi
|
|
fi
|