diff --git a/helpers/make-grub2 b/helpers/make-grub2 index f50262484f88a2a543894bcfd5112dc90affa01e..20e4f583497c8cd27cf40e610917d81906a30d6a 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