grub_template.cfg 3.09 KB
Newer Older
OSAK Buildhauer's avatar
OSAK Buildhauer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
color yellow/black white/red

set pager=1
set gfxpayload=keep

function kde_LoadCasper {
    loopback loop ($root)/${kde_isoname}
    echo    "Loading kernel"
    linux   (loop)__KDE_KERNEL__ boot=casper file=/isodevice/preseed/lip.seed ${cmdline} iso-scan/filename=/kubuntu.iso sysrq_always_enabled pstore.pstore_disable nosplash verbose --
    echo    "Loading initrd"
    initrd  (loop)__KDE_INITRD__
    echo    "Starting kernel"
}

function kde_menu {
    menuentry "Empfohlen: ${kde_release} (deutsch)" {
        set cmdline="debian-installer/language=de keyboard-configuration/layoutcode?=de"
        kde_LoadCasper
    }

    menuentry "Recommended: ${kde_release} (english)" {
        set cmdline=""
        kde_LoadCasper
    }

    menuentry "${kde_release} (deutsch, failsafe)" {
        set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de nomodeset noplymouth nosplash verbose text noacpi"
        kde_LoadCasper
    }

    menuentry "${kde_release} (english, failsafe)" {
        set cmdline="nomodeset noplymouth nosplash verbose text noacpi"
        kde_LoadCasper
    }

    menuentry "${kde_release} (deutsch, ohne LIPNSA)" {
            set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de fnord"
            kde_LoadCasper
    }

    menuentry "${kde_release} (english, without LIPNSA)" {
            set cmdline="fnord"
            kde_LoadCasper
    }
}

function xfce_LoadCasper {
    loopback loop ($root)/${xfce_isoname}
    echo    "Loading kernel"
    linux   (loop)__XFCE_KERNEL__ boot=casper file=/isodevice/preseed/lip.seed ${cmdline} iso-scan/filename=/kubuntu.iso sysrq_always_enabled pstore.pstore_disable nosplash verbose --
    echo    "Loading initrd"
    initrd  (loop)__XFCE_INITRD__
    echo    "Starting kernel"
}

function xfce_menu {
    menuentry "Empfohlen: ${xfce_release} (deutsch)" {
        set cmdline="debian-installer/language=de keyboard-configuration/layoutcode?=de"
        xfce_LoadCasper
    }

    menuentry "Recommended: ${xfce_release} (english)" {
        set cmdline=""
        xfce_LoadCasper
    }

    menuentry "${xfce_release} (deutsch, failsafe)" {
        set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de nomodeset noplymouth nosplash verbose text noacpi"
        xfce_LoadCasper
    }

    menuentry "${xfce_release} (english, failsafe)" {
        set cmdline="nomodeset noplymouth nosplash verbose text noacpi"
        xfce_LoadCasper
    }

    menuentry "${xfce_release} (deutsch, ohne LIPNSA)" {
            set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de fnord"
            xfce_LoadCasper
    }

    menuentry "${xfce_release} (english, without LIPNSA)" {
            set cmdline="fnord"
            xfce_LoadCasper
    }
}

set kde_release="__KDE_RELEASE__"
set kde_isoname="__KDE_ISONAME__"
kde_menu

set xfce_release="__XFCE_RELEASE__"
set xfce_isoname="__XFCE_ISONAME__"
xfce_menu