From a606b71d0f0423301d50fa7ebdbd2468ab829458 Mon Sep 17 00:00:00 2001
From: Lucas Manika Koeb <lmk08@c3sl.ufpr.br>
Date: Thu, 13 Sep 2012 11:20:22 -0300
Subject: [PATCH] le-conf: Add /etc/default/grub to fix the system name
 displayed by grub

Signed-off-by: Lucas Manika Koeb <lmk08@c3sl.ufpr.br>
---
 conf/pacote/DEBIAN/postrm    |  3 ++-
 conf/pacote/DEBIAN/preinst   |  3 ++-
 conf/pacote/etc/default/grub | 27 +++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 conf/pacote/etc/default/grub

diff --git a/conf/pacote/DEBIAN/postrm b/conf/pacote/DEBIAN/postrm
index 291c4349..60053ccc 100755
--- a/conf/pacote/DEBIAN/postrm
+++ b/conf/pacote/DEBIAN/postrm
@@ -21,7 +21,8 @@
 # USA.
 
 # Files to divert:
-DIVERTS="/etc/lsb-release"
+DIVERTS="/etc/lsb-release\
+         /etc/default/grub"
 
 if [[ "$1" != "upgrade" ]]; then
     for file in $DIVERTS; do
diff --git a/conf/pacote/DEBIAN/preinst b/conf/pacote/DEBIAN/preinst
index 3c26ea98..68adcaab 100755
--- a/conf/pacote/DEBIAN/preinst
+++ b/conf/pacote/DEBIAN/preinst
@@ -21,7 +21,8 @@
 # USA.
 
 # Files to divert:
-DIVERTS="/etc/lsb-release"
+DIVERTS="/etc/lsb-release\
+         /etc/default/grub"
 
 # Divert files:
 for file in $DIVERTS; do
diff --git a/conf/pacote/etc/default/grub b/conf/pacote/etc/default/grub
new file mode 100644
index 00000000..fca89e0f
--- /dev/null
+++ b/conf/pacote/etc/default/grub
@@ -0,0 +1,27 @@
+# If you change this file, run 'update-grub' afterwards to update
+# /boot/grub/grub.cfg.
+
+GRUB_DEFAULT=0
+#GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_TIMEOUT=10
+GRUB_DISTRIBUTOR=`echo $(lsb_release -i -s -r 2> /dev/null || echo Debian)`
+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
+GRUB_CMDLINE_LINUX=""
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal
+# note that you can use only modes which your graphic card supports via VBE
+# you can see them in real GRUB with the command `vbeinfo'
+#GRUB_GFXMODE=640x480
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_LINUX_RECOVERY="true"
+
+# Uncomment to get a beep at grub start
+#GRUB_INIT_TUNE="480 440 1"
\ No newline at end of file
-- 
GitLab