diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-09-28 16:16:04 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-09-28 16:16:04 +0000 |
commit | 8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03 (patch) | |
tree | 60312eb6698b129d172c8b9ffdb13cf079840886 /user/grub/update-grub | |
parent | 5cd64ffbbf9c1744efcb0319d30735ce2cf5b471 (diff) | |
parent | 2b957d5e230510b304b7ffa72c6401c49ffdd41f (diff) | |
download | packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.gz packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.bz2 packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.xz packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.zip |
Merge branch 'update-grub' into 'master'
user/grub: add radeon quirk (#49) and trigger
See merge request adelie/packages!331
Diffstat (limited to 'user/grub/update-grub')
-rw-r--r-- | user/grub/update-grub | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/user/grub/update-grub b/user/grub/update-grub new file mode 100644 index 000000000..d22930bd7 --- /dev/null +++ b/user/grub/update-grub @@ -0,0 +1,16 @@ +#!/bin/sh -e +. /etc/default/grub +if [ "$ADELIE_MANUAL_CONFIG" = 1 ]; then + cat >&2 <<-EOF + * + * You have specified that you are using a manual GRUB configuration. + * You must update it yourself. + * + EOF + exit 0 +fi + +if [ -e /boot/grub/grub.cfg ]; then + cp -p /boot/grub/grub.cfg /boot/grub/grub.cfg.update-grub-old +fi +exec grub-mkconfig -o /boot/grub/grub.cfg |