Last active
November 22, 2017 21:30
-
-
Save tonejito/ee29ee7eb42ae2dec6a6dbcc99e17c22 to your computer and use it in GitHub Desktop.
update-grub alias for RHEL-ish distros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 0755 root:root /usr/sbin/update-grub | |
# update-grub is not provided on RHEL-ish distros | |
set -e | |
exec grub2-mkconfig -o /boot/grub2/grub.cfg "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0644 root:root /etc/profile.d/update-grub.sh | |
# update-grub is not provided on RHEL-ish distros | |
if [ -n "$BASH_VERSION" ] | |
then | |
alias update-grub='grub2-mkconfig -o /boot/grub2/grub.cfg' | |
fi |
Author
tonejito
commented
Nov 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment