Compare commits
No commits in common. "c8s" and "c8" have entirely different histories.
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,6 +1,9 @@
|
|||||||
SOURCES/grub-2.02.tar.xz
|
SOURCES/grub-2.02.tar.xz
|
||||||
|
SOURCES/redhatsecureboot301.cer
|
||||||
|
SOURCES/redhatsecureboot502.cer
|
||||||
|
SOURCES/redhatsecureboot601.cer
|
||||||
|
SOURCES/redhatsecureboot701.cer
|
||||||
|
SOURCES/redhatsecurebootca3.cer
|
||||||
|
SOURCES/redhatsecurebootca5.cer
|
||||||
SOURCES/theme.tar.bz2
|
SOURCES/theme.tar.bz2
|
||||||
SOURCES/unifont-5.1.20080820.pcf.gz
|
SOURCES/unifont-5.1.20080820.pcf.gz
|
||||||
/grub-2.02.tar.xz
|
|
||||||
/theme.tar.bz2
|
|
||||||
/unifont-5.1.20080820.pcf.gz
|
|
||||||
|
9
.grub2.metadata
Normal file
9
.grub2.metadata
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
3d7eb6eaab28b88cb969ba9ab24af959f4d1b178 SOURCES/grub-2.02.tar.xz
|
||||||
|
4a07b56e28741884b86da6ac91f8f9929541a1e4 SOURCES/redhatsecureboot301.cer
|
||||||
|
3f94c47f1d08bacc7cb29bdd912e286b8d2f6fcf SOURCES/redhatsecureboot502.cer
|
||||||
|
039357ef97aab3e484d1119edd4528156f5859e6 SOURCES/redhatsecureboot601.cer
|
||||||
|
e89890ca0ded2f9058651cc5fa838b78db2e6cc2 SOURCES/redhatsecureboot701.cer
|
||||||
|
cf9230e69000076727e5b784ec871d22716dc5da SOURCES/redhatsecurebootca3.cer
|
||||||
|
e6f506462069aa17d2e8610503635c20f3a995c3 SOURCES/redhatsecurebootca5.cer
|
||||||
|
cf0b7763c528902da7e8b05cfa248f20c8825ce5 SOURCES/theme.tar.bz2
|
||||||
|
87f8600ba24e521b5d20bdf6c4b71af8ae861e3a SOURCES/unifont-5.1.20080820.pcf.gz
|
@ -1,41 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
|
||||||
|
|
||||||
[[ -f /etc/default/grub ]] && . /etc/default/grub
|
|
||||||
|
|
||||||
# Assume GRUB_ENABLE_BLSCFG is true if
|
|
||||||
# GRUB_ENABLE_BLSCFG is not set, e.g. /etc/default/grub does not exist
|
|
||||||
# GRUB_ENABLE_BLSCFG is set to true
|
|
||||||
if [[ x$GRUB_ENABLE_BLSCFG != xfalse ]]; then
|
|
||||||
# Can't assume a BLS capable bootloader on ppc64
|
|
||||||
if [[ $ARCH = "ppc64" || $ARCH = "ppc64le" ]]; then
|
|
||||||
RUN_MKCONFIG="true"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# A traditional grub configuration file needs to be generated only in the case when
|
|
||||||
# the bootloaders are not capable of populating a menu entry from the BLS fragments.
|
|
||||||
if [[ $RUN_MKCONFIG != "true" ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
COMMAND="$1"
|
|
||||||
|
|
||||||
grub_cfg=/boot/grub2/grub.cfg
|
|
||||||
if mountpoint -q /boot/efi; then
|
|
||||||
os_name=$(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/' -e 's/\"//g')
|
|
||||||
grub_cfg=/boot/efi/EFI/$os_name/grub.cfg
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$COMMAND" in
|
|
||||||
add|remove)
|
|
||||||
grub2-mkconfig --no-grubenv-update -o $grub_cfg >& /dev/null
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user