Package: src:grub2 Version: 2.02~beta2-7 Severity: wishlist Tags: patch Please apply the attached patch adding support for the Tanglu GNU/Linux [1] distribution.
1: http://tanglu.org/ -- System Information: Debian Release: 7.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable'), (225, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
>From f51f75c8a277eeaaee14596c9062ba65ce36d7b2 Mon Sep 17 00:00:00 2001 From: Jon Severinsson <j...@severinsson.net> Date: Fri, 28 Mar 2014 16:00:00 +0100 Subject: [PATCH] Add Tanglu support. As in Debian except: - Enable splash screen by default (as Ubuntu) - Enable quiet and quick boot (as Ubuntu) - Enable the grub-common init script (as Ubuntu) - Enable dynamic gfxpayload (as Ubuntu) - Enable vt handover (as Ubuntu) - Use monochromatic theme by default (as Ubuntu) - Use Tanglu GRUB wallpaper by default. --- debian/changelog | 8 ++++++++ debian/grub.d/05_debian_theme | 9 +++++++-- debian/rules | 16 ++++++++++++++++ 3 filer ändrade, 31 tillägg(+), 2 borttagningar(-) diff --git a/debian/changelog b/debian/changelog index fefe7323..9aa3a7e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,14 @@ grub2 (2.02~beta2-8) UNRELEASED; urgency=medium * Backport from upstream: - ieee1275: check for IBM pseries emulated machine. + * Add Tanglu support, as in Debian except: + - Enable splash screen by default (as Ubuntu) + - Enable quiet and quick boot (as Ubuntu) + - Enable the grub-common init script (as Ubuntu) + - Enable dynamic gfxpayload (as Ubuntu) + - Enable vt handover (as Ubuntu) + - Use monochromatic theme by default (as Ubuntu) + - Use Tanglu GRUB wallpaper by default. -- Colin Watson <cjwat...@debian.org> Mon, 24 Mar 2014 15:47:50 +0000 diff --git a/debian/grub.d/05_debian_theme b/debian/grub.d/05_debian_theme index 2e19846f..77564f21 100755 --- a/debian/grub.d/05_debian_theme +++ b/debian/grub.d/05_debian_theme @@ -29,8 +29,8 @@ BACKGROUND_CACHE=".background_cache" set_default_theme(){ case $GRUB_DISTRIBUTOR in - Ubuntu|Kubuntu) - # Set a monochromatic theme for Ubuntu. + Tanglu|Ubuntu|Kubuntu) + # Set a monochromatic theme for Tanglu/Ubuntu. echo "${1}set menu_color_normal=white/black" echo "${1}set menu_color_highlight=black/light-gray" @@ -176,6 +176,11 @@ fi case $GRUB_DISTRIBUTOR in Ubuntu|Kubuntu) ;; + Tanglu) + if set_background_image "/usr/share/images/grub/grub.png"; then + exit 0 + fi + ;; *) if set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then exit 0 diff --git a/debian/rules b/debian/rules index a46ee565..b26465e3 100755 --- a/debian/rules +++ b/debian/rules @@ -71,6 +71,19 @@ confflags += \ substvars := \ -Vlsb-base-depends="lsb-base (>= 3.0-6)" \ -Vgfxpayload-depends="grub-gfxpayload-lists [any-i386 any-amd64]" +else ifeq (yes,$(shell dpkg-vendor --derives-from Tanglu && echo yes)) +DEFAULT_CMDLINE := quiet splash +DEFAULT_TIMEOUT := 10 +DEFAULT_HIDDEN_TIMEOUT := 0 +DEFAULT_HIDDEN_TIMEOUT_BOOL := true +confflags += \ + --enable-quiet-boot \ + --enable-quick-boot \ + --enable-gfxpayload-dynamic \ + --enable-vt-handoff +substvars := \ + -Vlsb-base-depends="lsb-base (>= 3.0-6)" \ + -Vgfxpayload-depends="grub-gfxpayload-lists [any-i386 any-amd64]" else DEFAULT_CMDLINE := quiet DEFAULT_TIMEOUT := 5 @@ -382,6 +395,9 @@ override_dh_installdocs: ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes)) override_dh_installinit: dh_installinit -- start 99 2 3 4 5 . +else ifeq (yes,$(shell dpkg-vendor --derives-from Tanglu && echo yes)) +override_dh_installinit: + dh_installinit -- start 99 2 3 4 5 . else override_dh_installinit: : -- 1.7.10.4