diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 16:00:26 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 16:00:26 -0300 |
commit | 4253d9d631fb5aec2e5621169816601a727ca38f (patch) | |
tree | 8ed02951040aa02e8251b6ea67e57f6f7889b826 /libre/grub2/grub2.install | |
parent | c2c9769dc4be646cd0bb4026f78ea61bf01bed22 (diff) |
Moved grub2-1.99~rc1-4 from [libre-testing] to [libre]
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 +} + |