...hier noch meine Konfigurations-Dateien:

linuxmuster.net 6.2

(babo62)

Gruß Gü


Am 30.11.2016 um 17:13 schrieb Christoph Günschmann:
Hallo an alle,

also entweder bin ich hier extrem begriffstutzig oder es ist noch nicht genügend bekannt:

Wenn ich nach einem import_workstations die Datei:

/var/linbo/boot/grub/[hardwareklasse.cfg]

ansehe, steht dort - sofern man die Zeile ### managed by linuxmuster.net ### nicht angefasst hat:

set default=0

set timeout = 0

set fallback =1

Bei mir geschieht dann nach dem Rechnerstart das:

a) Der Rechner bootet über pxe, der linbo-Kernel wird gestartet, holt sich nochmal über dhcp seine IP, es dauert ein wenig, bis die Hardware konfiguriert ist und dann wird die lokale Boot-Konfiguration überprüft / geschrieben. Dabei werden die Dateien im lokalen Cache, die GRUB-themes geschrieben usw.

Jetzt fährt der Rechner in das LINBO-Auswahlmenü und bleibt hier stehen. Hier wird irgendwann der Schüler tätig. Und meist wird hier der grüne START-Button gebraucht.

DANN KOMMT DER REBOOT


b) Nochmal dhcp-Netzworkboot und sofortiges Laden des BS-Kernels.


Jetzt stelle ich aber die hardware.cfg so ein

set default=1

set timeout = 4 (oder 0)

set fallback =0


a) Der Rechner bootet über pxe.

Jetzt fährt der Rechner in das LINBO-Auswahlmenü und bleibt hier stehen. Hier wird irgendwann der Schüler tätig. Und meist wird hier der grüne START-Button gebraucht. Es gibt bei mir keinen reboot, mein Rechner bootet schlicht

LOKAL !

Und so ist das doch auch gedacht - oder ?

Ich habe es eben nochmal mit meinem Testsystem nachgestellt. Was soll also die Aufregung ?

Wolfgang, probier das doch mal bitte bei Dir !

Verwirrte Grüße,

Christoph Günschmann




Am 30.11.2016 um 11:02 schrieb j:
hallo holger,

es geht hier nicht um die glücklichen mit neuer(er) hardware, sondern um
die x hundert alten clients, die mit alter festplatte und altem
prozessor und vielleicht auch noch nem lahmen bios gesegnet sind und
windoofs benutzen müssen.

Mir hat es auch nicht so super gefallen: aber ich weiß es ist notwendig.
daß der reboot für neue hardware / os notwendig ist, habe ich nie angezweifelt. was ich nicht verstanden hatte war, weshalb man augenscheinlich eine bereits enthaltene funktion ausgebaut hat.

nun ist ja geklärt, daß es einen technologiewechsel gab und damit keine manpower mehr zur verfügung stand, das wieder reinzuprogrammieren.

jonny

_______________________________________________
linuxmuster-user mailing list
[email protected]
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user


raum1;raum1-trusty;trusty714;08:00:27:60:BD:A3;10.16.1.12;255.240.0.0;1;1;1;1;1
raum1;raum1-myfinekubuntu1;g1;08:00:27:54:21:1F;10.16.1.20;;;;;1;1
raum1;raum1-mykubuntu2;g1;08:00:27:7C:9F:F9;10.16.1.21;;;;;1;1
raum1;xenialofficial;xenial916;08:00:27:25:88:EB;10.16.1.23;;;;;1;1
# global part of group specific grub.cfg template for linbo net boot
# [email protected]
# 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=1
set timeout=4
set fallback=0

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 trusty714
 echo

 set root="(hd0,3)"
 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  $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
# [email protected]
# 20160804
#

# start "Ubuntu 14.04 Linuxmuster LTS" directly
menuentry 'Ubuntu 14.04 Linuxmuster LTS (Start)' --class ubuntu_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 ro splash
  initrd /initrd.img
 elif [ -e /vmlinuz -a -e /initrd ]; then
  linux /vmlinuz root=/dev/sda1 ro splash
  initrd /initrd
 elif [ -e /vmlinuz -a -e /initrd.img ]; then
  linux /vmlinuz root=/dev/sda1 ro splash
  initrd /initrd.img
 elif [ -e /vmlinuz ]; then
  linux /vmlinuz root=/dev/sda1 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 14.04 Linuxmuster LTS"
menuentry 'Ubuntu 14.04 Linuxmuster LTS (Sync+Start)' --class ubuntu_syncstart {

 set root="(hd0,3)"

 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 trusty714
  echo
  echo -n "Loading $linbo_kernel ..."
  linux $linbo_kernel  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 "Ubuntu 14.04 
Linuxmuster LTS"
menuentry 'Ubuntu 14.04 Linuxmuster LTS (Neu+Start)' --class ubuntu_newstart {

 set root="(hd0,3)"

 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 trusty714
  echo
  echo -n "Loading $linbo_kernel ..."
  linux $linbo_kernel  linbocmd=format:1,sync:1,start:1 $bootflag
  echo
  echo -n "Loading $linbo_initrd ..."
  initrd $linbo_initrd
  boot
 fi

}

# LINBO start.conf, Beispiel fuer Ubuntu
# Ubuntu auf Partition 1
# Swap auf Partition 2
# Virtualbox auf Partition 3
# Cache auf Partition 3
# Festplatte 160G

[LINBO]                             # Start der globalen Konfiguration
Systemtype = bios
KernelOptions = 
Cache = /dev/sda3                   # lokale Cache Partition
Server = 10.16.1.1                  # IP des TFTP-Servers, der Images vorhaelt
Group = trusty714
RootTimeout = 600                   # automatischer Rootlogout nach 600 Sek.
AutoPartition = no                  # keine automatische Partitionsreparatur 
beim LINBO-Start
AutoFormat = no                     # kein automatisches Formatieren aller 
Partitionen beim LINBO-Start
AutoInitCache = no                 # kein automatisches Befüllen 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 = orange     # Konsolenschriftfarbe für 
Fehler-/Warnmeldungen (default: red)

[Partition]              # Betriebssystem (Ubuntu)
Dev = /dev/sda1          # Device-Name der Partition (sda1 = erste Partition 
auf erster Platte)
Size = 25G          # Partitionsgroesse in kB (Bsp.: ca. 10G)
Id = 83                  # Partitionstyp (83 = Linux, 82 = swap, c = FAT32, 7 = 
NTFS, ...)
FSType = ext4            # Dateisystem ext4
Bootable = no            # Bootable-Flag

[Partition]              # Swap
Dev = /dev/sda2          # Device-Name der Partition (sda2 = zweite Partition 
auf erster Platte)
Size = 2G           # Partitionsgroesse 8388608 kB (Bsp.: ca. 10G)
Id = 82                  # Partitionstyp (83 = Linux, 82 = swap, c = FAT32, 7 = 
NTFS, ...)
FSType = swap            # Dateisystem ext4
Bootable = no            # Bootable-Flag

[Partition]              # Cachepartition
Dev = /dev/sda3          # Device-Name der Partition (sda4 = vierte Partition 
auf erster Platte)
Size =                   # Partitionsgroesse in kB (Bsp.: keine Angabe = Rest 
der Platte, ca. 138G)
Id = 83                  # Partitionstyp (83 = Linux, 82 = swap, c = FAT32, 7 = 
NTFS, ...)
FSType = ext4            # Dateisystem ext4
Bootable = no            # Bootable-Flag

[OS]
Name = Ubuntu 14.04 Linuxmuster LTS             # Name des Betriebssystems
Version =                           # Version (optional)
Description = Ubuntu 14.04 Trusty    # Beschreibung
IconName = ubuntu.png               # Icon für die Startseite, muss unter 
/var/linbo/icons abgelegt sein
#Image =  ubuntu.rsync              # Dateiname des differentiellen Images 
(Erweiterung .rsync)
Image =                             # erst eintragen, wenn es erzeugt werden 
soll
BaseImage = trusty714.cloop         # Dateiname des Basisimages (Erweiterung 
.cloop)
Boot = /dev/sda1                    # Partition, die Kernel & Initrd enthaelt
Root = /dev/sda1                    # Rootpartition, in die das BS installiert 
ist
Kernel = vmlinuz                    # Relativer Pfad zum Kernel
Initrd = initrd.img                 # Relativer Pfad zur Initrd
Append = ro splash                  # Kernel-Append-Parameter, ggf. anpassen
StartEnabled = yes                  # "Start"-Button anzeigen
SyncEnabled = yes                   # "Sync+Start"-Button anzeigen
NewEnabled = yes                    # "Neu+Start"-Button anzeigen
Hidden = yes                        # verstecke OS-Reiter
Autostart = no                      # automatischer synchronisierter Start 
dieses Betriebssystems: yes|no
DefaultAction = start                # DefaultAction bei Autostart: 
start|sync|new
#AutostartTimeout = 3                # Timeout in Sekunden für Benutzerabbruch 
bei Autostart

_______________________________________________
linuxmuster-user mailing list
[email protected]
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user

Antwort per Email an