Hallo miteinander,

jetzt habe ich auch mal kapiert, dass man nach einer Änderung der start.conf (insbes. der dort angegebenen Partitionierung) ein import_workstations laufen lassen muss, damit auch die Angaben in der zugehörigen .cfg dazu passen. Das war wohl beim "alten Linbo" nicht nötig, oder?

Auf jeden Fall passen nun die start.conf und die .cfg zusammen. Beide habe ich mal rangehängt. Leider habe ich aber immer noch das Problem, dass aus der Linbo-GUI kein OS bootet und die Bootreihenfolge ständig überschrieben wird.

Es sieht so aus:
Wenn ich in die Linbo-GUI boote, lässt sich weder per Start, Sync+Start oder Neu+Start das Betriebssystem starten. Es erfolgt zwar jeweils ein Neustart (ggf. nach dem Sync), aber man landet statt im OS leider wieder auf der Linbo-GUI.

Ich habe dann in der .cfg den Timeout hochgesetzt, damit ich im Linbo-Menue mal testen kann, was passiert. Wenn ich dort "Start" wähle, startet Windows 10 ganz normal. Wenn man dann aus Win10 den Rechner runter fährt und dann neu startet, stellt man leider fest, dass sich die Bootreihenfolge verschoben hat. Es steht nun plötzlich "Windows Boot Manager" an erster Stelle. Ab jetzt kommt man also an Linbo nicht mehr ran, es sei denn, man ändert die Bootreihenfolge wieder manuell. Das kann ja auch keine Dauerlösung sein.

Wenn ich im Linbo-Menue auf "Sync+Start" drücke, wird syncronisiert, neu gestartet und man landet wieder im Linbo-Menue. Also kein automatischer OS-Start nach dem Sync.

Ich sitze nun schon seit Wochen an den Rechnern. Vielleicht hat doch jemand einen Tipp?

Schöne Grüße

Johannes


# global part of group specific grub.cfg template for linbo net boot
# tho...@linuxmuster.net
# 20160804
#

# if you don't want this file being overwritten by import_workstations remove 
the following line:
# ### managed by linuxmuster.net ###

# edit to your needs
set default=0
set timeout=10
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 physik
 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 quiet splash $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
# tho...@linuxmuster.net
# 20160804
#

# start "Windows 10" directly
menuentry 'Windows 10 (Start)' --class win_start {

 set root="(hd0,3)"
 set win_efiloader="/EFI/Microsoft/Boot/bootmgfw.efi"
 
 if [ -e /vmlinuz -a -e /initrd.img ]; then
  linux /vmlinuz root=/dev/sda3 
  initrd /initrd.img
 elif [ -e /vmlinuz -a -e /initrd ]; then
  linux /vmlinuz root=/dev/sda3 
  initrd /initrd
 elif [ -e /auto -a -e /noinitrd_placeholder ]; then
  linux /auto root=/dev/sda3 
  initrd /noinitrd_placeholder
 elif [ -e /auto ]; then
  linux /auto root=/dev/sda3 
 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 10"
menuentry 'Windows 10 (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 physik
  echo
  echo -n "Loading $linbo_kernel ..."
  linux $linbo_kernel quiet splash 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 10"
menuentry 'Windows 10 (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 physik
  echo
  echo -n "Loading $linbo_kernel ..."
  linux $linbo_kernel quiet splash linbocmd=format:3,sync:1,start:1 $bootflag
  echo
  echo -n "Loading $linbo_initrd ..."
  initrd $linbo_initrd
  boot
 fi

}

# LINBO start.conf Beispiel mit EFI (GPT)
# EFI 64 Partition 1
# MSR  Partition 2
# Windows 10 Partition 3
# Cache auf Partition 4
# Daten auf Partition 5
# Festplatte 160G

[LINBO]                  # globale Konfiguration
Cache = /dev/sda4        # lokale Cache Partition
Server = 10.16.1.1       # IP des Linbo-Servers, der das Linbo-Repository 
vorhaelt
Group = physik           # Name der Rechnergruppe fuer die diese 
Konfigurationsdatei gilt
# Achtung: Server und Group werden beim Workstationsimport automatisch gesetzt!
SystemType = efi64                  # moeglich ist bios|bios64|efi32|efi64 
(Standard: bios fuer bios 32bit)
RootTimeout = 600        # automatischer Rootlogout nach 600 Sek.
Autopartition = no       # automatische Partitionsreparatur beim LINBO-Start
AutoFormat = no          # kein automatisches Formatieren aller Partitionen 
beim LINBO-Start
AutoInitCache = no       # kein automatisches Befuellen des Caches beim 
LINBO-Start
DownloadType = rsync   # Image-Download per torrent|multicast|rsync, default 
ist rsync
BackgroundFontColor = white         # Bildschirmschriftfarbe (default: white)
ConsoleFontColorStdout = white # Konsolenschriftfarbe (default: white)
ConsoleFontColorStderr = red     # Konsolenschriftfarbe fuer 
Fehler-/Warnmeldungen (default: red)
KernelOptions = quiet splash        # Beispiele:
#KernelOptions = acpi=noirq irqpoll # LINBO Kerneloptionen (z. B. acpi=off), m. 
Leerz. getrennt
#KernelOptions = server=10.16.1.5   # Abweichende Linbo-Server-IP als 
Kerneloption gesetzt
                                    # falls gesetzt wird diese IP beim 
Workstationsimport verwendet 

[Partition]              # Partition fuer EFI
Dev = /dev/sda1          # Device-Name der Partition (sda1 = erste Partition 
auf erster Platte)
Size = 200M              # Partitionsgroesse 200M, ist keine Einheit (M, G oder 
T) angegeben, wird kiB angenommen
Id = ef                  # Partitionstyp (83 = Linux, 82 = swap, c = FAT32, 7 = 
NTFS, ef = efi)
FSType = vfat            # Dateisystem auf der Partition (FAT32)
Bootable = yes           # Bootable-Flag gesetzt
Label = efi              # Partitionslabel efi (efi system partition)

[Partition]              # Partition fuer MSR
Dev = /dev/sda2          # Device-Name der Partition (sda2 = zweite Partition 
auf erster Platte)
Size = 128M              # Partitionsgroesse 128M
Id = c01                # Partitionstyp 0c01
FSType =                 # kein Dateisystem
Bootable = no            # kein Bootable-Flag
Label = msr              # Partitionslabel msr (microsoft reserved partition)

[Partition]              # Partition fuer Windows
Dev = /dev/sda3          # Device-Name der Partition (sda3 = dritte Partition 
auf erster Platte)
Size = 50G               # Partitionsgroesse 30G
Id = 7                   # Partitionstyp 83
FSType = ntfs            # Dateisystem ext4
Bootable = no            # kein Bootable-Flag
Label = windows          # Partitionslabel win10

[Partition]              # Cache-Partition
Dev = /dev/sda4          # Device-Name der Partition (sda4 = vierte Partition 
auf erster Platte)
Size = 40G               # Partitionsgroesse 50G
Id = 83                  # Partitionstyp 83
FSType = ext4            # Dateisystem ext4
Bootable = no            # kein Bootable-Flag
Label = cache            # Partitionslabel cache

[Partition]              # Daten-Partition
Dev = /dev/sda5          # Device-Name der Partition (sda5 = sechste Partition 
auf erster IDE-Platte)
Size =                  # Partitionsgroesse nicht angegeben = Rest der Platte
Id = 7                   # Partitionstyp 7
FSType = ntfs            # Dateisystem ntfs
Bootable = no            # kein Bootable-Flag
Label = daten            # Partitionslabel daten

[OS]                       # Beginn einer Betriebssystemdefinition
Name = Windows 10          # Name des Betriebssystems
Version =                  # Version (unbenutzt, leer lassen)
Description = Windows 10   # Beschreibung
IconName = win10.png       # Icon fuer den Startbutton, muss unter 
/var/linbo/icons abgelegt sein
Image =                    # differentielles Image (Erweiterung .rsync, 
Verwendung nicht empfohlen)
BaseImage = win10-physik.cloop    # Dateiname des Basisimages (Erweiterung 
.cloop)
Boot = /dev/sda3           # Bootpartition (unbenutzt, immer gleich 
Rootpartition)
Root = /dev/sda3           # Rootpartition, in die das BS installiert ist
Kernel = auto              # Windows: auto (LINBO & Grub erkennen die 
Startparameter automatisch)
Initrd =                   # Windows: leer
Append =                   # Windows: leer
StartEnabled = yes         # "Start"-Button anzeigen
SyncEnabled = yes          # "Sync+Start"-Button anzeigen
NewEnabled = yes           # "Neu+Start"-Button anzeigen
Hidden = yes               # verstecke OS-Reiter (unbenutzte Option, auf "yes" 
lassen)
Autostart = no             # automatischer Start des Betriebssystems (yes|no)
AutostartTimeout = 5       # Timeout in Sekunden fuer Benutzerabbruch bei 
Autostart
DefaultAction = sync       # Standardaktion bei Autostart: start|sync|new
_______________________________________________
linuxmuster-user mailing list
linuxmuster-user@lists.linuxmuster.net
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user

Antwort per Email an