Bug 40628 - syntax error in grub config during upgrade
syntax error in grub config during upgrade
Status: RESOLVED INVALID
Product: UCS
Classification: Unclassified
Component: Grub
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: Kernel maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-10 13:07 CET by Florian Best
Modified: 2016-02-11 13:06 CET (History)
2 users (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 Florian Best univentionstaff 2016-02-10 13:07:17 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
Comment 1 Florian Best univentionstaff 2016-02-10 17:05:27 CET
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!
Comment 2 Erik Damrose univentionstaff 2016-02-11 11:11:19 CET
(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
Comment 3 Florian Best univentionstaff 2016-02-11 11:18:31 CET
(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.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2016-02-11 12:53:46 CET
(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)
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2016-02-11 13:06:34 CET
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