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 { function set64 {
set iso="ubuntu-12.04-desktop-amd64.iso" set iso=${iso64}
set isoinitrd=""
set bits="64" set bits="64"
set altbits="32" set altbits="32"
} }
function set32 { function set32 {
set iso="" set iso=${iso32}
set isoinitrd=""
set bits="32" set bits="32"
set altbits="64" set altbits="64"
} }
...@@ -46,10 +47,6 @@ function LoadCasperLoop { ...@@ -46,10 +47,6 @@ function LoadCasperLoop {
echo "Found ${iso} on (${isodev})" echo "Found ${iso} on (${isodev})"
echo "" echo ""
fi fi
if test -z "${initrd}"
then
set initrd="(loop)/casper/initrd.lz"
fi
loopback loop (${isodev})/${iso} loopback loop (${isodev})/${iso}
echo "Loading kernel (takes up to 2 minutes)" echo "Loading kernel (takes up to 2 minutes)"
echo "" echo ""
...@@ -59,77 +56,68 @@ function LoadCasperLoop { ...@@ -59,77 +56,68 @@ function LoadCasperLoop {
echo " find_cow_device ${iso}" echo " find_cow_device ${iso}"
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/$iso file=/cdrom/preseed/ubuntu.seed ${localeinfo} nosplash verbose -- 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)" echo "Loading initrd from iso (takes up to 5 minutes)"
initrd "${initrd}" initrd (loop)/casper/initrd.lz
echo "Starting kernel" echo "Starting kernel"
} }
#TODO: ist $root immer automatisch richtig gesetzt ? function LoadArchLoop {
# Man koennte search -l "Label-des-FAT32-auf-dem-Usbstick" benutzen. set archfslabel="CINNARCH_201210"
# 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 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" { menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (deutsch)" {
loopback loop ($root)/$iso set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
echo "Loading ${bits}bit kernel (takes up to 2 minutes)" LoadCasperLoop
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 "======== Bei Auswahl ab hier unbedingt Helfer hinzuziehen =======" { menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (english)" {
#echo "Hier ist nichts. Gehen sie weiter." set localeinfo=""
set gameroot=(${root})/boot/game LoadCasperLoop
export gameroot
configfile ${gameroot}/game.cfg
} }
menuentry "Ubuntu 12.04 AMD64 vanilla" { menuentry "========================= Helfermenu ===============================" {
set64 echo "hier ist nichts"
set isodev=${root}
LoadCasperLoop
} }
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom" { menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom" {
set iso="ubuntu-12.04-lipws1213-amd64.iso" set iso=${iso64}
set localeinfo="" set localeinfo=""
LoadCasperLoop LoadCasperLoop
} }
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE 2.7.2" { menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE" {
set iso="ubuntu-12.04-lipws1213-amd64-v2.7.2.iso" set iso=${iso64}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de" set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
set initrd="/initrd2.lz"
LoadCasperLoop LoadCasperLoop
} }
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE" { menuentry "Ubuntu 12.04 i386 LIP WS1213 Custom" {
set iso="ubuntu-12.04-lipws1213-amd64.iso" set iso=${iso32}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de" set localeinfo=""
LoadCasperLoop LoadCasperLoop
} }
menuentry "Ubuntu 12.04 x86 LIP WS1213 Custom DE" { menuentry "Ubuntu 12.04 i386 LIP WS1213 Custom DE" {
set iso="LIPiso32bit-v2.iso" set iso=${iso32}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de" set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
LoadCasperLoop LoadCasperLoop
} }
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom Chainload" { #menuentry "Cinnarch 10.2012 test for LIP SS 2012" {
set iso="ubuntu-12.04-lipws1213-amd64.iso" # set iso="cinnarch-2012.10.01-netinstall-x86_64.iso"
set isohd=(hd0,2) # LoadArchLoop
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
}
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