cf7b25968b
ensuring grub2-snapper-plugin is installed when both snapper and grub2-common are installed (bsc#1231271) - Fix OOM error in loading loopback file (bsc#1230840) * 0001-tpm-Skip-loopback-image-measurement.patch - Fix UEFI PXE boot failure on tagged VLAN network (bsc#1230263) * 0001-efinet-Skip-virtual-VLAN-devices-during-card-enumera.patch - Fix grub screen is filled with artifects from earlier post menu (bsc#1224465) * grub2-SUSE-Add-the-t-hotkey.patch * 0001-fix-grub-screen-filled-with-post-screen-artifects.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=516
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
#! /bin/sh -e
|
|
|
|
# update-grub helper script.
|
|
# Copyright (C) 2008 Free Software Foundation, Inc.
|
|
#
|
|
# GRUB is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# GRUB is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# The output of this script is copied from part of grub.cfg
|
|
# that correspond to itself. The achievement is that user can
|
|
# modify that part of grub.cfg directly, and it will be persistent
|
|
# across update-grub runs.
|
|
|
|
transform="s&^&&;s,grub,grub2,"
|
|
ME=$(echo $0 |sed 's,/,\\/,g')
|
|
GRUBCFG=/boot/`echo grub | sed ${transform}`/grub.cfg
|
|
|
|
# Exit gracefully if there's no configuration file yet
|
|
[ -f ${GRUBCFG} ] || exit 0
|
|
|
|
awk "
|
|
BEGIN {echo = 0}
|
|
/### BEGIN $ME ###/ {echo = 1; next}
|
|
/### END $ME ###/ {echo = 0; next}
|
|
{if (echo) print}
|
|
" ${GRUBCFG}
|