# global part of group specific grub.cfg template for linbo net boot # thomas@linuxmuster.net # 20160804 # # if you don't want this file being overwritten by import_workstations remove the following line: # edit to your needs set default=0 set timeout=0 set fallback=1 set gfxpayload=800x600x16 # 32bit pae, non pae or 64bit kernel if cpuid -l; then set linbo_kernel=/linbo64 set linbo_initrd=/linbofs64.lz elif cpuid -p; then set linbo_kernel=/linbo set linbo_initrd=/linbofs.lz else set linbo_kernel=/linbo-np set linbo_initrd=/linbofs-np.lz fi # theme settings (modify for custom theme) set theme=/boot/grub/themes/linbo/theme.txt #set font=/boot/grub/themes/linbo/unifont-regular-16.pf2 # load theme #if [ -e "$theme" -a -e "$font" ]; then # loadfont "$font" export theme #fi clear # linbo part, boot local or net (default #0) menuentry 'LINBO' --class linux { echo LINBO $bootflag for group w7ub echo set root="(hd0,4)" if [ -e "$linbo_kernel" -a -e "$linbo_initrd" ]; then set bootflag=localboot elif [ -n "$pxe_default_server" ]; then set root="(tftp)" set bootflag=netboot fi if [ -n "$bootflag" ]; then echo -n "Loading $linbo_kernel ..." linux $linbo_kernel Project-Id-Version: schulkonsole 0.10.11Report-Msgid-Bugs-To: entwickler@lml.mine.nuPOT-Creation-Date: 2015-02-13 07:54+0100PO-Revision-Date: 2014-04-06 14:22+0200Last-Translator: root Language-Team: GermanLanguage: deMIME-Version: 1.0Content-Type: text/plain; charset=ASCIIContent-Transfer-Encoding: 8bitPlural-Forms: nplurals=2; plural=(n != 1); $bootflag echo echo -n "Loading $linbo_initrd ..." initrd $linbo_initrd boot else if [ "$grub_platform" = "pc" ]; then set ipxe="/ipxe.lkrn" fi if [ -e "$ipxe" ]; then echo -n "Initiating pxe boot ..." linux16 $ipxe dhcp boot fi fi } # group specific grub.cfg template for linbo net boot, should work with linux and windows operating systems # thomas@linuxmuster.net # 20160804 # # start "Windows 7" directly menuentry 'Windows 7 (Start)' --class win_start { set root="(hd0,1)" set win_efiloader="/EFI/Microsoft/Boot/bootmgfw.efi" if [ -e /vmlinuz -a -e /initrd.img ]; then linux /vmlinuz root=/dev/sda1 initrd /initrd.img elif [ -e /vmlinuz -a -e /initrd ]; then linux /vmlinuz root=/dev/sda1 initrd /initrd elif [ -e /grub.exe -a -e /noinitrd_placeholder ]; then linux /grub.exe root=/dev/sda1 initrd /noinitrd_placeholder elif [ -e /grub.exe ]; then linux /grub.exe root=/dev/sda1 elif [ -s /boot/grub/grub.cfg ] ; then configfile /boot/grub/grub.cfg elif [ "$grub_platform" = "pc" ]; then if [ -s /bootmgr ] ; then ntldr /bootmgr elif [ -s /ntldr ] ; then ntldr /ntldr elif [ -s /grldr ] ; then ntldr /grldr else chainloader +1 fi elif [ -e "$win_efiloader" ]; then chainloader $win_efiloader boot fi } # boot LINBO, sync and then start "Windows 7" menuentry 'Windows 7 (Sync+Start)' --class win_syncstart { set root="(hd0,4)" if [ -e "$linbo_kernel" -a -e "$linbo_initrd" ]; then set bootflag=localboot elif [ -n "$pxe_default_server" ]; then set root="(tftp)" set bootflag=netboot fi if [ -n "$bootflag" ]; then echo LINBO $bootflag for group w7ub echo echo -n "Loading $linbo_kernel ..." linux $linbo_kernel Project-Id-Version: schulkonsole 0.10.11Report-Msgid-Bugs-To: entwickler@lml.mine.nuPOT-Creation-Date: 2015-02-13 07:54+0100PO-Revision-Date: 2014-04-06 14:22+0200Last-Translator: root Language-Team: GermanLanguage: deMIME-Version: 1.0Content-Type: text/plain; charset=ASCIIContent-Transfer-Encoding: 8bitPlural-Forms: nplurals=2; plural=(n != 1); linbocmd=sync:1,start:1 $bootflag echo echo -n "Loading $linbo_initrd ..." initrd $linbo_initrd boot fi } # boot LINBO, format os partition, sync and then start "Windows 7" menuentry 'Windows 7 (Neu+Start)' --class win_newstart { set root="(hd0,4)" if [ -e "$linbo_kernel" -a -e "$linbo_initrd" ]; then set bootflag=localboot elif [ -n "$pxe_default_server" ]; then set root="(tftp)" set bootflag=netboot fi if [ -n "$bootflag" ]; then echo LINBO $bootflag for group w7ub echo echo -n "Loading $linbo_kernel ..." linux $linbo_kernel Project-Id-Version: schulkonsole 0.10.11Report-Msgid-Bugs-To: entwickler@lml.mine.nuPOT-Creation-Date: 2015-02-13 07:54+0100PO-Revision-Date: 2014-04-06 14:22+0200Last-Translator: root Language-Team: GermanLanguage: deMIME-Version: 1.0Content-Type: text/plain; charset=ASCIIContent-Transfer-Encoding: 8bitPlural-Forms: nplurals=2; plural=(n != 1); linbocmd=format:1,sync:1,start:1 $bootflag echo echo -n "Loading $linbo_initrd ..." initrd $linbo_initrd boot fi } # group specific grub.cfg template for linbo net boot, should work with linux and windows operating systems # thomas@linuxmuster.net # 20160804 # # start "Ubuntu" directly menuentry 'Ubuntu (Start)' --class ubuntu_start { set root="(hd0,2)" set win_efiloader="/EFI/Microsoft/Boot/bootmgfw.efi" if [ -e /vmlinuz -a -e /initrd.img ]; then linux /vmlinuz root=/dev/sda2 ro splash initrd /initrd.img elif [ -e /vmlinuz -a -e /initrd ]; then linux /vmlinuz root=/dev/sda2 ro splash initrd /initrd elif [ -e /vmlinuz -a -e /initrd.img ]; then linux /vmlinuz root=/dev/sda2 ro splash initrd /initrd.img elif [ -e /vmlinuz ]; then linux /vmlinuz root=/dev/sda2 ro splash elif [ -s /boot/grub/grub.cfg ] ; then configfile /boot/grub/grub.cfg elif [ "$grub_platform" = "pc" ]; then if [ -s /bootmgr ] ; then ntldr /bootmgr elif [ -s /ntldr ] ; then ntldr /ntldr elif [ -s /grldr ] ; then ntldr /grldr else chainloader +1 fi elif [ -e "$win_efiloader" ]; then chainloader $win_efiloader boot fi } # boot LINBO, sync and then start "Ubuntu" menuentry 'Ubuntu (Sync+Start)' --class ubuntu_syncstart { set root="(hd0,4)" if [ -e "$linbo_kernel" -a -e "$linbo_initrd" ]; then set bootflag=localboot elif [ -n "$pxe_default_server" ]; then set root="(tftp)" set bootflag=netboot fi if [ -n "$bootflag" ]; then echo LINBO $bootflag for group w7ub echo echo -n "Loading $linbo_kernel ..." linux $linbo_kernel Project-Id-Version: schulkonsole 0.10.11Report-Msgid-Bugs-To: entwickler@lml.mine.nuPOT-Creation-Date: 2015-02-13 07:54+0100PO-Revision-Date: 2014-04-06 14:22+0200Last-Translator: root Language-Team: GermanLanguage: deMIME-Version: 1.0Content-Type: text/plain; charset=ASCIIContent-Transfer-Encoding: 8bitPlural-Forms: nplurals=2; plural=(n != 1); linbocmd=sync:2,start:2 $bootflag echo echo -n "Loading $linbo_initrd ..." initrd $linbo_initrd boot fi } # boot LINBO, format os partition, sync and then start "Ubuntu" menuentry 'Ubuntu (Neu+Start)' --class ubuntu_newstart { set root="(hd0,4)" if [ -e "$linbo_kernel" -a -e "$linbo_initrd" ]; then set bootflag=localboot elif [ -n "$pxe_default_server" ]; then set root="(tftp)" set bootflag=netboot fi if [ -n "$bootflag" ]; then echo LINBO $bootflag for group w7ub echo echo -n "Loading $linbo_kernel ..." linux $linbo_kernel Project-Id-Version: schulkonsole 0.10.11Report-Msgid-Bugs-To: entwickler@lml.mine.nuPOT-Creation-Date: 2015-02-13 07:54+0100PO-Revision-Date: 2014-04-06 14:22+0200Last-Translator: root Language-Team: GermanLanguage: deMIME-Version: 1.0Content-Type: text/plain; charset=ASCIIContent-Transfer-Encoding: 8bitPlural-Forms: nplurals=2; plural=(n != 1); linbocmd=format:2,sync:2,start:2 $bootflag echo echo -n "Loading $linbo_initrd ..." initrd $linbo_initrd boot fi }