From 1afc576c93ee8b42d7b8ce253895fc42d2679e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info> Date: Tue, 2 Sep 2014 17:35:42 +0200 Subject: [PATCH] Tuned up grub2 branding --- helpers/make-grub2 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/helpers/make-grub2 b/helpers/make-grub2 index f5026248..20e4f583 100644 --- a/helpers/make-grub2 +++ b/helpers/make-grub2 @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=4 COMPONENT=main . ./config @@ -30,6 +30,9 @@ for i in install_efi_ubuntu_flavours.patch mkconfig_ubuntu_distributor.patch; do sed /$i/d debian/patches/series -i done +#Allow passwords https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311302 +sed '/^CLASS/s/class os/class os --unrestricted/' -i util/grub.d/10_linux.in + replace "with Linux" "with Linux-Libre" util replace "with Linux" "with Linux-Libre" debian replace "Linux" "Linux-Libre" po @@ -45,8 +48,14 @@ cat << EOF >> debian/default/grub GRUB_DISABLE_RECOVERY=true EOF -changelog "Disable rescue mode by default, nomodeset handler" -sed "s/-.*)/-${REVISION}trisquel${VERSION})/" -i debian/changelog +GRUBVERSION=$(head -n1 debian/changelog |/bin/sed 's/.*(//;s/).*//; s/[~+-].*//') + +echo $GRUBVERSION +echo /bin/sed "/GNU GRUB version/ s/PACKAGE_VERSION/\"$GRUBVERSION\"/" -i grub-core/normal/main.c +/bin/sed "/GNU GRUB version/ s/PACKAGE_VERSION/\"$GRUBVERSION\"/" -i grub-core/normal/main.c + +changelog "Disable rescue mode by default, branding" +#sed "s/-.*)/-${REVISION}trisquel${VERSION})/" -i debian/changelog #apt-get install -y --force-yes kvm-pxe # /dev is needed for KVM support -- GitLab