diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /libre/grub2/grub2.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'libre/grub2/grub2.install')
-rw-r--r-- | libre/grub2/grub2.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/grub2/grub2.install b/libre/grub2/grub2.install new file mode 100644 index 000000000..898dc9246 --- /dev/null +++ b/libre/grub2/grub2.install @@ -0,0 +1,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 +} + |