summarylogtreecommitdiffstats
path: root/grub-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'grub-git.install')
-rw-r--r--grub-git.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/grub-git.install b/grub-git.install
new file mode 100644
index 000000000000..cf2e4b59535f
--- /dev/null
+++ b/grub-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ if [ -f /boot/grub/grub.cfg.pacsave ]; then
+ echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
+ install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
+ fi
+
+ cat << 'EOM'
+Generating grub.cfg.example config file...
+This may fail on some machines running a custom kernel.
+EOM
+
+ grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
+ echo "done."
+}
+