Skip to content
Snippets Groups Projects
Commit e3809613 authored by Gustav Geier's avatar Gustav Geier
Browse files

Added grub

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 106 additions and 0 deletions
File added
File added
File added
File added
File added
set iso32="lipws1213-i386.iso"
set iso64="lipws1213-amd64.iso"
function set64 {
set iso=${iso64}
set bits="64"
set altbits="32"
}
function set32 {
set iso=${iso32}
set bits="32"
set altbits="64"
}
function guesscpu {
if cpuid -l
then
echo "Dein System scheint ein 64-bit System zu sein."
set64
else
echo "Dein System scheint ein 32-bit System zu sein."
set32
fi
echo "Die weiseste Wahl sollte $bits bits mit $iso und $isoinitrd zu sein"
echo
}
#elif is not working in this grub version !?!
if test -z $bits
then
guesscpu
else
if test 64 == $bits
then
set64
else
set32
fi
fi
# Set up a loop device and start a Debian style Casper Live CD from it.
function LoadCasperLoop {
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 ""
echo "Hint: You may need to mount the USB stick on /isodevice by hand !"
echo " Or you may need to run this:"
echo " . /scripts/casper-helpers"
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 (loop)/casper/initrd.lz
echo "Starting kernel"
}
menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (deutsch)" {
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
LoadCasperLoop
}
menuentry "Empfohlen: Ubuntu 12.04 LTS ${bits}bit (english)" {
set localeinfo=""
LoadCasperLoop
}
menuentry "========================= Helfermenu ===============================" {
echo "hier ist nichts"
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom" {
set iso=${iso64}
set localeinfo=""
LoadCasperLoop
}
menuentry "Ubuntu 12.04 AMD64 LIP WS1213 Custom DE" {
set iso=${iso64}
set localeinfo="debian-installer/locale=de_DE console-setup/layoutcode=de"
LoadCasperLoop
}
menuentry "Ubuntu 12.04 i386 LIP WS1213 Custom" {
set iso=${iso32}
set localeinfo=""
LoadCasperLoop
}
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 "EFI-Shell" {
chainloader /EFI/shell/Shell.efi
}
# GRUB Environment Block
#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
\ No newline at end of file
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment