summaryrefslogtreecommitdiff
path: root/user/grub/update-grub
blob: d22930bd74eb5bbb46b5156206818342a29e16b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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