Univention Bugzilla – Bug 40628
syntax error in grub config during upgrade
Last modified: 2016-02-11 13:06:34 CET
Currently every update from UCS 4.1 errata-stable to UCS 4.1 errata-unreleased displays a syntax error in the grub configuration. grub-common (2.02~beta2-22+deb8u1.107.201602051734) wird eingerichtet ... Neue Version der Konfigurationsdatei /etc/grub.d/08_linux_xen wird installiert ... Neue Version der Konfigurationsdatei /etc/grub.d/30_uefi-firmware wird installiert ... Neue Version der Konfigurationsdatei /etc/grub.d/00_header wird installiert ... Neue Version der Konfigurationsdatei /etc/grub.d/30_os-prober wird installiert ... Neue Version der Konfigurationsdatei /etc/grub.d/10_linux wird installiert ... Neue Version der Konfigurationsdatei /etc/grub.d/05_debian_theme wird installiert ... Neue Version der Konfigurationsdatei /etc/bash_completion.d/grub wird installiert ... grub2-common (2.02~beta2-22+deb8u1.107.201602051734) wird eingerichtet ... grub-pc-bin (2.02~beta2-22+deb8u1.107.201602051734) wird eingerichtet ... grub-pc (2.02~beta2-22+deb8u1.107.201602051734) wird eingerichtet ... Removing update-grub hooks from /etc/kernel-img.conf in favour of /etc/kernel/ hooks. Replacing config file /etc/default/grub with new version Installing for i386-pc platform. installation beendet. Keine Fehler aufgetreten. Generating grub configuration file ... Found background image: uniboot.png Linux-Abbild gefunden: /boot/vmlinuz-4.1.0-ucs167-amd64 initrd-Abbild gefunden: /boot/initrd.img-4.1.0-ucs167-amd64 Linux-Abbild gefunden: /boot/vmlinuz-4.1.0-ucs153-amd64 initrd-Abbild gefunden: /boot/initrd.img-4.1.0-ucs153-amd64 Found memtest86+ image: /memtest86+.bin Fehler: syntax error. Fehler: Incorrect command. Fehler: syntax error. Syntaxfehler in Zeile 106 In der erzeugten GRUB-Konfigurationsdatei wurden Syntaxfehler entdeckt. Stellen Sie sicher, das die Dateien /etc/default/grub und /etc/grub.d/* fehlerfrei sind oder erstellen Sie einen Fehlerbericht mit /boot/grub/grub.cfg.new als Anhang. erledigt Generating legacy menu.lst from current kernels
Reproduce: 1. ucs-kt-get -O UCS → select "(97) [UCS: 4.1-0 amd64 - generic-v2]" 2. configure this system as DC slave + join + activate checkbox "update system after install" 3. insert into /etc/apt/sources.list deb http://omar.knut.univention.de/build2/ ucs_4.1-0-errata4.1-0/all/ deb http://omar.knut.univention.de/build2/ ucs_4.1-0-errata4.1-0/$(ARCH)/ deb http://omar.knut.univention.de/build2/ ucs_4.1-0-ucs-school-4.1/all/ deb http://omar.knut.univention.de/build2/ ucs_4.1-0-ucs-school-4.1/$(ARCH)/ 4. apt-get update; apt-get dist-upgrade → syntax error!
(In reply to Florian Best from comment #1) > 4. apt-get update; apt-get dist-upgrade Why not univention-upgrade? I could reproduce the error when using 'apt-get dist-upgrade', but thats not what u-upgrade does... Which selection did you use when asked what to do with the changed configfile? Could not reproduce it with univention-upgrade
(In reply to Erik Damrose from comment #2) > (In reply to Florian Best from comment #1) > > 4. apt-get update; apt-get dist-upgrade > > Why not univention-upgrade? It's not as comfortable :D It doesn't show what's happening. > I could reproduce the error when using 'apt-get dist-upgrade', but thats not > what u-upgrade does... Which selection did you use when asked what to do > with the changed configfile? I selected to use the new configfile from the package. univention-upgrade uses the old ones I think.
(In reply to Florian Best from comment #3) > > Why not univention-upgrade? > It's not as comfortable :D It doesn't show what's happening. tail -f /var/log/univention/updater.log > > I could reproduce the error when using 'apt-get dist-upgrade', but thats not > > what u-upgrade does... Which selection did you use when asked what to do > > with the changed configfile? > I selected to use the new configfile from the package. univention-upgrade > uses the old ones I think. This is what univention-upgrade uses: apt-get -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-overwrite \ -o DPkg::Options::=--force-overwrite-dir --trivial-only=no --assume-yes \ --quiet=1 -u dist-upgrade see also $(ucr get update/commands/distupgrade)
During the tests for bug 39009 I ran univention-upgrade on 2 different systems (i386/amd64) and both showed no syntax errors. → WORKSFORME apt-get dist-upgrade is not supported → INVALID