Linbo startet nur ein einziges mal, danach immer direkt Ubuntu. Cache Partition ist nicht die letzte

Hallo zusammen,

ich habe auch das Problem, dass Linbo nur einmal startet und danach immer direkt das Clientsystem. Ich habe mehrere Dinge im Forum gelesen, wie z.B. dass die Cache Partition nicht die letzte sein darf. Ist sie auch nicht. Über Hilfe und Ideen beim debuggen wäre ich sehr dankbar. Bei den Rechnern handelt es sich um ESPRIMO P720. Die wichtigsten Daten von lshw:
*-core
Beschreibung: Hauptplatine
Produkt: D3221-A1
Hersteller: FUJITSU
Physische ID: 0
Version: S26361-D3221-A1
*-firmware
Beschreibung: BIOS
Hersteller: FUJITSU // American Megatrends Inc.
Physische ID: 0
Version: V4.6.5.4 R1.34.0 for D3221-A1x
date: 01/08/2015
Größe: 64KiB
Kapazität: 8128KiB
*-cpu
Beschreibung: CPU
Produkt: Intel® Celeron® CPU G1840 @ 2.80GHz
Hersteller: Intel Corp.
Physische ID: 54
Bus-Informationen: cpu@0
Version: Intel® Celeron® CPU G1840 @ 2.80GHz
Steckplatz: SOCKET 0
Größe: 2800MHz
Kapazität: 3800MHz
Breite: 64 bits
Takt: 100MHz

Die start.conf:

cat /var/linbo/start.conf.xenial
/# efi system partition 1
/# operating system on partition 2
/# cache on partition 3
/# swap on partition 4
/# data on partition 5

[LINBO] # global section
Server = 10.16.1.1 # linbo server ip address
Group = xenial # name of the hardware group
/# IMPORTANT: server and group will be automatically set during device import!
Cache = /dev/sda3 # cache partition
RootTimeout = 600 # logout from admin console after 600 secs
AutoPartition = no # no partition repair during LINBO startup
AutoFormat = no # no formatting of all partitions during LINBO startup
AutoInitCache = no # no initial cache setup during LINBO startup
DownloadType = rsync # image download method (torrent|multicast|rsync)
BackgroundFontColor = white # font color of status section (default: white)
ConsoleFontColorStdout = lightgreen # console font color (default: white)
ConsoleFontColorStderr = orange # console error font color (default: red)
SystemType = efi64 # possible values: bios|bios64|efi32|efi64 (default: bios)
KernelOptions = nosplash # linbo kernel options, space separated
#KernelOptions = acpi=noirq irqpoll # linbo kernel options example for use with acpi problems
#KernelOptions = server=10.16.1.5 # different pxe server ip, (needs device import to be activated)

[Partition] # efi system partition
Dev = /dev/sda1 # device name of the partition
Label = efi # partition label
Size = 200M # partition size 200M, will use kiB if no unit (M, G or T) is set
Id = ef # partition id (ef = efi)
FSType = vfat # filesystem vfat
Bootable = yes # set bootable flag yes

[Partition] # partition section (operating system)
Dev = /dev/sda2 # device name of the partition
Label = ubuntu # partition label
Size = 60G # partition size 60G
Id = 83 # partition id (83 = linux)
FSType = ext4 # filesystem ext4
Bootable = no # set bootable flag no

[Partition] # partition section (cache)
Dev = /dev/sda3 # device name of the partition
Label = cache # partition label
Size = 30G # partition size 30G
Id = 83 # partition id (83 = linux)
FSType = ext4 # filesystem ext4
Bootable = no # set bootable flag no

[Partition] # partition section (swap)
Dev = /dev/sda4 # device name of the partition
Label = swap # partition label
Size = 8G # partition size 8G
Id = 82 # partition id (82 = swap)
FSType = swap # filesystem swap
Bootable = no # set bootable flag no

[Partition] # partition section (data)
Label = data # partition label
Dev = /dev/sda5 # device name of the partition
Size = # partition size (no value = remaining space of the disk)
Id = 83 # partition id (83 = linux)
FSType = ext4 # filesystem ext4
Bootable = no # set bootable flag no

[OS] # os section
Name = Ubuntu # os name
Version = # version (not used)
Description = Ubuntu 18.04 # detailed description of os
IconName = ubuntu.png # icon filename in /var/linbo/icons
Image = # filename of differential image (extension .rsync, optional)
BaseImage = xenial916.cloop # filename of main image (extension .cloop)
Boot = /dev/sda2 # boot partition (not used, identical with root partition)
Root = /dev/sda2 # root partition of the os
Kernel = vmlinuz # relative path to kernel
Initrd = initrd.img # relative path to initrd
Append = ro splash # kernel append parameters
StartEnabled = yes # show start button
SyncEnabled = yes # show sync+start button
NewEnabled = yes # show new+start button
Autostart = no # automatic start of os (yes|no)
AutostartTimeout = 5 # timeout in secs for user to cancel automatic start
DefaultAction = sync # default action on automatic start: start|sync|new
Hidden = yes # hide os tab (unused option, leave it at yes)

Hallo,

beim EFI Boot machen die UEFI BIOSe gerne Mist.
Ich vermute, dass das UEFI einfach Ubuntu wieder als Bootsystem einträgt
und somit direkt as Ubuntu bootet und eben nicht linbo, welches das
Bootverhalten eigentlich steuern sollte.
Erster Lösungsansatz: im BIOS wieder die Bootreihenfolge auf linbo
(grub) stellen.
Zweiter Ansatz wäre es von linbo oder ubuntu aus die efi Partition zu
mounten und alle Booteinträge (Verzeichnisse im Verzeichnis EFI)
löschen, außer „grub“ und dann nochmal wieder grub im BIOS ein zu tragen.

LG

Holger

Hallo Holger,

vielen Dank für deine schnelle Antwort. Ich werde es asap ausprobieren und berichten.

Viele Grüße

Julian

Ich habe jetzt beides ausprobiert, beide Ansätze funktionieren nur einmal. Danach wird immer Ubuntu direkt gestartet. Die Lösung wäre ja auch nicht ganz so gut, da ich ja jedes mal wenn das Image neu installiert wird das gleiche Problem haben werde. Wäre ein Cronjob eine Option, der bei jedem runterfahren den Ubuntu Eintrag aus /EFI/ entfernt?

Hi Julian!
Bei uns gibt’s auch Fujitsu-PCs, die dieses Verhalten zeigen. Wir haben viel ausprobiert und nun folgendes WorkAround gebastelt:
Ich binde die EFI-Partition automatisch ein ( /var/local/efi) und lösche dort dann mit Hilfe von /etc/rc.local das Verzeichnis Ubuntu auf ihr. Das ist zwar nicht elegant, funktioniert aber.
rm -R /var/local/efi/EFI/Ubuntu
Dabei gehört das Verzeichnis /var/local root und nur der darf da lesen/schreiben

Grüße
Markus

Hallo Julian,

Ich habe jetzt beides ausprobiert, beide Ansätze funktionieren nur
einmal. Danach wird immer Ubuntu direkt gestartet.

es stimmt also was ich befürchtet habe: das UEFI BIOS stellt selber von
„grub“ auf „ubuntu“ um?
Du stellst zurück, dann wird wieder grub geladen, bis du wieder ubuntu
gestartet hast: dann ist es wieder ubuntu im BIOS?

Die Lösung wäre ja
auch nicht ganz so gut, da ich ja jedes mal wenn das Image neu
installiert wird das gleiche Problem haben werde. Wäre ein Cronjob eine
Option, der bei jedem runterfahren den Ubuntu Eintrag aus /EFI/ entfernt?

nun ist es möglich, dass das UEFI oder ubuntu selbst die Bootreihenfolge
ändert.
Ich kenne UEFI BIOSe die das machen, hab aber noch nie gesehen/gehört,
dass ubuntu das machen würde: deswegen würde ich mehr in Richtung BIOS
gehen: also zuerst mal BIOS Update machen und schauen, ob das hilft.

LG

Holger

Hallo,

ich habe noch folgenden Hinweis zu dem Problem gefunden:

"Eventuell muss Secure Boot im UEFI/BIOS deaktiviert werden. "

und hier wird zum Thema auch einiges geschrieben:

Gruß

Alois

Hallo,

nach einigem rumprobieren habe ich mich nun auch für eine schmutzige Lösung entschieden. Ähnlich wie Markus führe ich via Systemd beim runterfahren ein Skript aus, welches die EFI Partition mountet und den Ubuntu Eintrag entfernt. Damit geht es.

Allerdings sind bei uns ähnliche Probleme bei älteren Esprimos aufgetaucht (P710 und P700). Die Symptomatik ist sehr ähnlich, nur dass er nachdem man in Linbo Ubuntu starten ausgewählt hat nicht ab sofort immer Ubuntu bootet, sondern er startet immer den Intel Boot Agent. Ubuntu lässt sich dort gar nicht starten, auch nicht über das Bootmenü. Ich habe aber beschlossen da keine weitere Arbeit rein zu stecken. Bios Updates gibt es laut der Fujitsu Homepage nicht, weiter zu frickeln indem ich mir genau angucke welche Boards in den unterschiedlichen Baureihen stecken um mir dann ne passende Biosversion zu besorgen werde ich auch nicht. Es kommen bald neue Rechner ins Haus geflattert und ich hoffe, dass es dann zur Abwechslung einfach mal klappt.

Vielen Dank für eure bisherige Hilfe!

Julian