/[smeserver]/rpms/e-smith-grub/sme10/e-smith-grub-2.6.1.bz9728.AddGrubThemeKoozali.patch
ViewVC logotype

Contents of /rpms/e-smith-grub/sme10/e-smith-grub-2.6.1.bz9728.AddGrubThemeKoozali.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu May 11 00:02:49 2017 UTC (7 years ago) by unnilennium
Branch: MAIN
CVS Tags: e-smith-grub-2_6_1-9_el7_sme, e-smith-grub-2_6_1-6_el7_sme, e-smith-grub-2_6_1-10_el7_sme, e-smith-grub-2_6_1-5_el7_sme, e-smith-grub-2_6_1-11_el7_sme, e-smith-grub-2_6_1-7_el7_sme, e-smith-grub-2_6_1-8_el7_sme, HEAD
* Thu May 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-5.sme
- fix edition and consol grub terminal not visible because of koozali logo [SME: 9728]

1 diff -Nur e-smith-grub-2.6.1.old/root/etc/e-smith/templates/etc/default/grub/GrubSplash e-smith-grub-2.6.1/root/etc/e-smith/templates/etc/default/grub/GrubSplash
2 --- e-smith-grub-2.6.1.old/root/etc/e-smith/templates/etc/default/grub/GrubSplash 2016-06-15 22:30:29.000000000 +0200
3 +++ e-smith-grub-2.6.1/root/etc/e-smith/templates/etc/default/grub/GrubSplash 2017-05-11 01:46:40.803368900 +0200
4 @@ -1,4 +1,26 @@
5 {
6 - push @lines, 'GRUB_BACKGROUND="/boot/grub/smeserver10.png"' unless ( grep /GRUB_BACKGROUND/, @lines );
7 + # grub splash image for koozali, alternative to theme
8 + # ignored if a theme is defined
9 + #GRUB_BACKGROUND="/boot/grub2/smeserver10.png"
10 + my $GrubBackground= $Sysconfig{'GrubBackground'} || '/boot/grub2/smeserver10.png';
11 + # remove if disabled, : you do not want any background
12 + if ($GrubBackground eq 'disabled') {
13 + @lines = map {
14 + s/^GRUB_BACKGROUND.*//;
15 + $_
16 + } @lines;
17 + }
18 + else {
19 +
20 + # change if line already there
21 + @lines = map {
22 + /^GRUB_BACKGROUND/ && ! /="$GrubBackground"/ && s/=".*"/="$GrubBackground"/;
23 + $_
24 + } @lines;
25 +
26 + # add if line missing
27 + push @lines, 'GRUB_BACKGROUND="$GrubBackground"' unless ( grep /GRUB_BACKGROUND/, @lines );
28 + }
29 $OUT = "";
30 +
31 }
32 diff -Nur e-smith-grub-2.6.1.old/root/etc/e-smith/templates/etc/default/grub/GrubTheme e-smith-grub-2.6.1/root/etc/e-smith/templates/etc/default/grub/GrubTheme
33 --- e-smith-grub-2.6.1.old/root/etc/e-smith/templates/etc/default/grub/GrubTheme 1970-01-01 01:00:00.000000000 +0100
34 +++ e-smith-grub-2.6.1/root/etc/e-smith/templates/etc/default/grub/GrubTheme 2017-05-11 01:38:40.416370912 +0200
35 @@ -0,0 +1,31 @@
36 +{
37 + # grub theme for koozali:
38 + #GRUB_THEME="/boot/grub2/themes/koozali/theme.txt"
39 + #GRUB_GFXMODE="1024x768"
40 + my $GrubTheme = $Sysconfig{'GrubTheme'} || 'koozali';
41 + my $GrubGFXMODE = $Sysconfig{'GrubGFXMODE'} || '1024x768';
42 +
43 + # remove if disabled
44 + if ($GrubTheme eq 'disabled') {
45 + @lines = map {
46 + s/^GRUB_GFXMODE.*//;
47 + s/^GRUB_THEME.*//;
48 + $_
49 + } @lines;
50 + }
51 + else {
52 +
53 + # change if line already there
54 + @lines = map {
55 + /^GRUB_GFXMODE/ && ! /="$GrubGFXMODE"/ && s/=".*"/="$GrubGFXMODE"/;
56 + /^GRUB_THEME/ && ! /="\/boot\/grub2\/themes\/$GrubTheme\/theme.txt"/ && s/=".*"/="\/boot\/grub2\/themes\/$GrubTheme\/theme.txt"/;
57 + $_
58 + } @lines;
59 +
60 + # add if line missing
61 + push @lines, 'GRUB_GFXMODE="'.$GrubGFXMODE.'"' unless ( grep /GRUB_GFXMODE/, @lines );
62 + push @lines, 'GRUB_THEME="/boot/grub2/themes/'.$GrubTheme.'/theme.txt"' unless ( grep /GRUB_THEME/, @lines );
63 + }
64 + "";
65 +}
66 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed