Bug 28841 - Kernel und Grub Konfiguration/Aktualisierung
Kernel und Grub Konfiguration/Aktualisierung
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Stefan Gohmann
: interim-1
: 28228 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-19 12:05 CEST by Stefan Gohmann
Modified: 2013-03-26 09:14 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-10-19 12:05:09 CEST
Derzeit bootet das Image immer per CD oder per PXE. Man kann in dem Toolkit angeben, dass Grub installiert werden soll. Es müsste dann sichergestellt werden, dass Kernel und Grub sich später aktualisieren lassen.
Comment 1 Stefan Gohmann univentionstaff 2012-10-23 08:22:00 CEST
Damit Grub installiert werden kann müssen folgende Änderungen vorgenommen werden:

1. In /etc/default/grub muss GRUB_CMDLINE_LINUX_DEFAULT um das Bootverfahren ergänzt werden, beispielsweise "boot=ucc ucc=update"

2. Derzeit steigt die Device Suche in /etc/grub.d/10_linux aus, da das loop-Device ein Image ist:

# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
  /dev/loop/*|/dev/loop[0-9])
    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
    # We can't cope with devices loop-mounted from files here.
    case ${GRUB_DEVICE} in
      /dev/*) ;;
      *) exit 0 ;;
    esac
  ;;
esac

3. Als root= sollte das Device mit dem Image angegeben werden.

/etc/default/grub sollte ein Template sein und wir ändern /etc/grub.d/10_linux oder wir bringen ein /etc/grub.d/12_ucc mit.
Comment 2 Stefan Gohmann univentionstaff 2012-10-24 20:18:39 CEST
univention-ucc-grub wurde hinzugefügt. Das Skript /etc/grub.d/10_linux wird geändert als /etc/grub.d/15_ucc ausgeliefert.

Zusätzlich wird die grub.cfg um das UCC Bootverfahren ergänzt.

Es ist zwingend erforderlich, dass das UCC System eine Bootpartition verwendet, weil ansonsten die /boot Daten nur im Image liegt und darauf kann der Grub nicht ohne weiteres zugreifen.

Die Default Images wurden entsprechend angepasst-
Comment 3 Stefan Gohmann univentionstaff 2012-10-26 20:25:30 CEST
*** Bug 28228 has been marked as a duplicate of this bug. ***
Comment 4 Moritz Muehlenhoff univentionstaff 2012-10-31 15:06:46 CET
(In reply to comment #2)
> univention-ucc-grub wurde hinzugefügt. Das Skript /etc/grub.d/10_linux wird
> geändert als /etc/grub.d/15_ucc ausgeliefert.

Auf den aktuellen Images ist beides vorhanden:

root@ucc-09976:/etc/grub.d# ls -lha
total 68K
drwxr-xr-x  2 root root 4.0K Oct 31  2012 .
drwxr-xr-x 83 root root 4.0K Oct 31 03:08 ..
-rwxr-xr-x  1 root root 6.6K Sep 12 20:19 00_header
-rwxr-xr-x  1 root root 5.4K Sep 12 20:05 05_debian_theme
-rwxr-xr-x  1 root root 7.3K Sep 12 20:19 10_linux
-rwxr-xr-x  1 root root 7.5K Oct 23 14:26 15_ucc
-rwxr-xr-x  1 root root 6.2K Sep 12 20:19 20_linux_xen
-rwxr-xr-x  1 root root 7.5K Sep 12 20:19 30_os-prober
-rwxr-xr-x  1 root root  214 Sep 12 20:19 40_custom
-rwxr-xr-x  1 root root   95 Sep 12 20:19 41_custom
-rw-r--r--  1 root root  483 Sep 12 20:19 README
Comment 5 Stefan Gohmann univentionstaff 2012-10-31 15:48:15 CET
(In reply to comment #4)
> (In reply to comment #2)
> > univention-ucc-grub wurde hinzugefügt. Das Skript /etc/grub.d/10_linux wird
> > geändert als /etc/grub.d/15_ucc ausgeliefert.
> 
> Auf den aktuellen Images ist beides vorhanden:
> 
> root@ucc-09976:/etc/grub.d# ls -lha
> total 68K
> drwxr-xr-x  2 root root 4.0K Oct 31  2012 .
> drwxr-xr-x 83 root root 4.0K Oct 31 03:08 ..
> -rwxr-xr-x  1 root root 6.6K Sep 12 20:19 00_header
> -rwxr-xr-x  1 root root 5.4K Sep 12 20:05 05_debian_theme
> -rwxr-xr-x  1 root root 7.3K Sep 12 20:19 10_linux
> -rwxr-xr-x  1 root root 7.5K Oct 23 14:26 15_ucc
> -rwxr-xr-x  1 root root 6.2K Sep 12 20:19 20_linux_xen
> -rwxr-xr-x  1 root root 7.5K Sep 12 20:19 30_os-prober
> -rwxr-xr-x  1 root root  214 Sep 12 20:19 40_custom
> -rwxr-xr-x  1 root root   95 Sep 12 20:19 41_custom
> -rw-r--r--  1 root root  483 Sep 12 20:19 README

Das ist OK, 10_linux schreibt keine Einträge, da die Devices nicht erkannt werden. So brauchte das vorhanden grub Paket von Ubuntu nicht geändert werden.
Comment 6 Moritz Muehlenhoff univentionstaff 2012-10-31 16:30:41 CET
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > univention-ucc-grub wurde hinzugefügt. Das Skript /etc/grub.d/10_linux wird
> > > geändert als /etc/grub.d/15_ucc ausgeliefert.
> > 
> > Auf den aktuellen Images ist beides vorhanden:
> > 
> > root@ucc-09976:/etc/grub.d# ls -lha
> > total 68K
> > drwxr-xr-x  2 root root 4.0K Oct 31  2012 .
> > drwxr-xr-x 83 root root 4.0K Oct 31 03:08 ..
> > -rwxr-xr-x  1 root root 6.6K Sep 12 20:19 00_header
> > -rwxr-xr-x  1 root root 5.4K Sep 12 20:05 05_debian_theme
> > -rwxr-xr-x  1 root root 7.3K Sep 12 20:19 10_linux
> > -rwxr-xr-x  1 root root 7.5K Oct 23 14:26 15_ucc
> > -rwxr-xr-x  1 root root 6.2K Sep 12 20:19 20_linux_xen
> > -rwxr-xr-x  1 root root 7.5K Sep 12 20:19 30_os-prober
> > -rwxr-xr-x  1 root root  214 Sep 12 20:19 40_custom
> > -rwxr-xr-x  1 root root   95 Sep 12 20:19 41_custom
> > -rw-r--r--  1 root root  483 Sep 12 20:19 README
> 
> Das ist OK, 10_linux schreibt keine Einträge, da die Devices nicht erkannt
> werden. So brauchte das vorhanden grub Paket von Ubuntu nicht geändert werden.

Dann VERIFIED.
Comment 7 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:32 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

If this error occurs again, please use "Clone This Bug".