Commit 43760c8f authored by Christopher Spinrath's avatar Christopher Spinrath

Added support for booting Archlinux ( and forks like Cinnarch ) in grub.cfg

parent e6d0c61d
set iso32="lipws1213-i386.iso"
set iso64="lipws1213-amd64.iso"
function set64 {
set iso="ubuntu-12.04-desktop-amd64.iso"
set isoinitrd=""
set iso=${iso64}
set bits="64"
set altbits="32"
}
function set32 {
set iso=""
set isoinitrd=""
set iso=${iso32}
set bits="32"
set altbits="64"
}
......@@ -46,10 +47,6 @@ function LoadCasperLoop {
echo "Found ${iso} on (${isodev})"
echo ""
fi
if test -z "${initrd}"
then
set initrd="(loop)/casper/initrd.lz"
fi
loopback loop (${isodev})/${iso}
echo "Loading kernel (takes up to 2 minutes)"
echo ""
......@@ -59,77 +56,68 @@ function LoadCasperLoop {
echo " find_cow_device ${iso}"
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/$iso file=/cdrom/preseed/ubuntu.seed ${localeinfo} nosplash verbose --
echo "Loading initrd from iso (takes up to 5 minutes)"
initrd "${initrd}"
initrd (loop)/casper/initrd.lz
echo "Starting kernel"
}
#TODO: ist $root immer automatisch richtig gesetzt ?
# Man koennte search -l "Label-des-FAT32-auf-dem-Usbstick" benutzen.
# Man Kann auch 'search -f -s isodev /$iso' verwenden um das grub-device zu bekommen, auf dem $iso liegt. Man beachte dabei den absoluten Pfad mit / am Anfang! Das Ergebnis wird (falls gefunden) in der Variable $isodev abgelegt. z.b. $isodev=hd0,1
function LoadArchLoop {
set archfslabel="CINNARCH_201210"
set stickfslabel="MultiBoot"
if test -z "${isodev}"
then
search -f -s isodev /${iso}
echo "Found ${iso} on (${isodev})"
echo ""
fi
loopback loop (${isodev})/${iso}
echo "Loading kernel (takes up to 2 minutes)"
echo ""
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=${archfslabel} img_label=${stickfslabel} img_loop=$iso ${localinfo} nosplash verbose
echo "Loading initrd from iso (takes up to 5 minutes)"
initrd (loop)/arch/boot/x86_64/archiso.img
echo "Starting kernel"
}
#TODO: Suche Loesung um die UUID des FAT32 an das bootende .iso weiterzugeben
menuentry "Empfohlen: Boot Ubuntu 11.10 ${bits}bit Live ISO by UUID" {
loopback loop ($root)/$iso
echo "Loading ${bits}bit kernel (takes up to 2 minutes)"
linux (loop)/casper/vmlinuz boot=casper iso-scan/uuid=C3E9-0499 iso-scan/filename=/$iso file=(loop)/preseed/ubuntu.seed --
echo "Loading ${bits}bit initrd (takes up to 5 minutes)"
initrd ($root)/$isoinitrd
echo "Starting ${bits}bit kernel"
menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (deutsch)" {
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
LoadCasperLoop
}
menuentry "======== Bei Auswahl ab hier unbedingt Helfer hinzuziehen =======" {
#echo "Hier ist nichts. Gehen sie weiter."
set gameroot=(${root})/boot/game
export gameroot
configfile ${gameroot}/game.cfg
menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (english)" {
set localeinfo=""
LoadCasperLoop
}
menuentry "Ubuntu 12.04 AMD64 vanilla" {
set64
set isodev=${root}
LoadCasperLoop
menuentry "========================= Helfermenu ===============================" {
echo "hier ist nichts"
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom" {
set iso="ubuntu-12.04-lipws1213-amd64.iso"
set iso=${iso64}
set localeinfo=""
LoadCasperLoop
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE 2.7.2" {
set iso="ubuntu-12.04-lipws1213-amd64-v2.7.2.iso"
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE" {
set iso=${iso64}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
set initrd="/initrd2.lz"
LoadCasperLoop
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE" {
set iso="ubuntu-12.04-lipws1213-amd64.iso"
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
menuentry "Ubuntu 12.04 i386 LIP WS1213 Custom" {
set iso=${iso32}
set localeinfo=""
LoadCasperLoop
}
menuentry "Ubuntu 12.04 x86 LIP WS1213 Custom DE" {
set iso="LIPiso32bit-v2.iso"
menuentry "Ubuntu 12.04 i386 LIP WS1213 Custom DE" {
set iso=${iso32}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
LoadCasperLoop
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom Chainload" {
set iso="ubuntu-12.04-lipws1213-amd64.iso"
set isohd=(hd0,2)
loopback loop $isohd/$iso
set root=(loop)
export root
set iso_path="${iso}"
export iso_path
configfile /boot/grub/grub.cfg
}
menuentry "Helfermenu. Nur Nach Ruecksprache mit einem Install-Helfer benutzen." {
export bits
set autobits=${bits}
export autobits
configfile ${prefix}/helfer.cfg
}
#menuentry "Cinnarch 10.2012 test for LIP SS 2012" {
# set iso="cinnarch-2012.10.01-netinstall-x86_64.iso"
# LoadArchLoop
#}
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