Commit aa374fbe authored by Valentin Bruch's avatar Valentin Bruch
Browse files

fixed grub template

parent ad5f6e35
...@@ -14,6 +14,9 @@ set pager=1 ...@@ -14,6 +14,9 @@ set pager=1
set gfxpayload=keep set gfxpayload=keep
function loadCasper { function loadCasper {
set isoname="$1"
set kernel="$2"
set initrd="$3"
loopback loop ($root)/${isoname} loopback loop ($root)/${isoname}
echo "Loading kernel" echo "Loading kernel"
linux (loop)${kernel} boot=casper file=/isodevice/preseed/lip.seed ${cmdline} iso-scan/filename=/${isoname} sysrq_always_enabled pstore.pstore_disable nosplash verbose -- linux (loop)${kernel} boot=casper file=/isodevice/preseed/lip.seed ${cmdline} iso-scan/filename=/${isoname} sysrq_always_enabled pstore.pstore_disable nosplash verbose --
...@@ -25,37 +28,34 @@ function loadCasper { ...@@ -25,37 +28,34 @@ function loadCasper {
# Arguments: RELEASE ISONAME KERNEL INITRD # Arguments: RELEASE ISONAME KERNEL INITRD
function img_menu { function img_menu {
set release="$1" set release="$1"
set isoname="$2" menuentry "Empfohlen: ${release} (deutsch)" "$2" "$3" "$4" {
set kernel="$3"
set initrd="$4"
menuentry "Empfohlen: ${release} (deutsch)" {
set cmdline="debian-installer/language=de keyboard-configuration/layoutcode?=de" set cmdline="debian-installer/language=de keyboard-configuration/layoutcode?=de"
loadCasper loadCasper "$2" "$3" "$4"
} }
menuentry "Recommended: ${release} (english)" { menuentry "Recommended: ${release} (english)" "$2" "$3" "$4" {
set cmdline="" set cmdline=""
loadCasper loadCasper "$2" "$3" "$4"
} }
menuentry "${release} (deutsch, failsafe)" { menuentry "${release} (deutsch, failsafe)" "$2" "$3" "$4" {
set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de nomodeset noplymouth nosplash verbose text noacpi" set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de nomodeset noplymouth nosplash verbose text noacpi"
loadCasper loadCasper "$2" "$3" "$4"
} }
menuentry "${release} (english, failsafe)" { menuentry "${release} (english, failsafe)" "$2" "$3" "$4" {
set cmdline="nomodeset noplymouth nosplash verbose text noacpi" set cmdline="nomodeset noplymouth nosplash verbose text noacpi"
loadCasper loadCasper "$2" "$3" "$4"
} }
menuentry "${release} (deutsch, ohne LIPNSA)" { menuentry "${release} (deutsch, ohne LIPNSA)" "$2" "$3" "$4" {
set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de fnord" set cmdline="debian-installer/locale=de_DE console-setup/layoutcode=de fnord"
loadCasper loadCasper "$2" "$3" "$4"
} }
menuentry "${release} (english, without LIPNSA)" { menuentry "${release} (english, without LIPNSA)" "$2" "$3" "$4" {
set cmdline="fnord" set cmdline="fnord"
loadCasper loadCasper "$2" "$3" "$4"
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment