XYZ File Manager
Current Path:
/lib/kernel/install.d
lib
/
kernel
/
install.d
/
📁
..
📄
10-devicetree.install
(1.92 KB)
📄
20-grub.install
(7.98 KB)
📄
20-grubby.install
(1.86 KB)
📄
50-depmod.install
(1.96 KB)
📄
50-dracut.install
(1.85 KB)
📄
51-dracut-rescue.install
(3.79 KB)
📄
60-kdump.install
(791 B)
📄
90-loaderentry.install
(5.5 KB)
📄
90-uki-copy.install
(3.09 KB)
📄
92-crashkernel.install
(204 B)
📄
92-tuned.install
(1.62 KB)
📄
95-kernel-hooks.install
(675 B)
📄
99-grub-mkconfig.install
(1.02 KB)
Editing: 99-grub-mkconfig.install
#!/usr/bin/bash if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then exit 0 fi ARCH=$(uname -m) # Older ppc64le OPAL firmware (petitboot version < 1.8.0) don't have BLS support # so grub2-mkconfig has to be run to generate a config with menuentry commands. if [[ $ARCH = "ppc64le" ]] && [ -d /sys/firmware/opal ]; then RUN_MKCONFIG=true fi if [[ $DISABLE_BLS = "true" ]]; then if grep -q '^GRUB_ENABLE_BLSCFG="*true"*\s*$' /etc/default/grub; then sed -i 's/^GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/' /etc/default/grub fi fi [ -f /etc/default/grub ] && . /etc/default/grub if [ x$GRUB_ENABLE_BLSCFG = xfalse ]; then RUN_MKCONFIG=true 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" case "$COMMAND" in add|remove) grub2-mkconfig --no-grubenv-update -o /boot/grub2/grub.cfg >& /dev/null ;; *) ;; esac
Upload File
Create Folder