summaryrefslogtreecommitdiff
path: root/libre/grub2/grub2.install
blob: 898dc9246d9b9879002d43e7c1553cae20db958c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
post_install() {

 if [ -f /boot/grub/grub.cfg.pacsave ]; then
   echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
   install -Dm644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
 fi

 echo -n "Generating grub.cfg.example config file... "
 grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
 echo "done."

cat << EOF 
 An example config file is created at /boot/grub/grub.cfg.example
 
 For more information and additional config settings please see http://wiki.archlinux.org/index.php/GRUB2

EOF

}


post_upgrade() {
cat << EOF
 An example config file is created at /boot/grub/grub.cfg.example

 For more information and additional config settings please see http://wiki.archlinux.org/index.php/GRUB2

EOF
}