Bug 40509 - UCR variable for GRUB_DEFAULT and GRUB_SAVEDEFAULT
UCR variable for GRUB_DEFAULT and GRUB_SAVEDEFAULT
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Grub
UCS 4.0
All Linux
: P5 minor (vote)
: UCS 4.0-4-errata
Assigned To: Philipp Hahn
Stefan Gohmann
:
Depends on: 26763
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-27 10:43 CET by Stefan Gohmann
Modified: 2016-02-04 15:58 CET (History)
4 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 Stefan Gohmann univentionstaff 2016-01-27 10:43:20 CET
Please also provide a UCS 4,0 backport.

+++ This bug was initially created as a clone of Bug #26763 +++

Grub bietet die Möglichkeit, sich den im Boot-Menü ausgewählten Eintrag zu merken, um diesen dann auch beim nächsten Bootvorgang zu benutzen. Dazu ist in /etc/univention/templates/files/etc/default/grub folgendes zu setzten:
 GRUB_DEFAULT=saved
 GRUB_SAVEDEFAULT=true

Die letzte Zeile sorgt dafür, daß das Auswählen eines Eintrags auch dazu führt, diese Auswahl in der Datei /boot/grub/grubenv zu speichern, während die erste Zeile dafür sorgt, daß diese Einstellung beim nächsten Boot-Vorgang dann auch benutzt wird. Alternativ kann hier auch direkt ein Eintrag durch Angabe des Index (ab 0) ausgewählt werden, weshalb hier ggf. eine UCR-Variable ganz sinnvoll wäre.
Comment 1 Philipp Hahn univentionstaff 2016-01-27 16:26:34 CET
r67017 | Bug #40509 GRUB: Allow to select kernel to boot.
r67016 | Bug #40509 GRUB: Fix pyflakes errors
r67015 | Bug #40509 GRUB: Copyright 2016

Package: univention-grub
Version: 8.0.4-3.127.201601271624
Branch: ucs_4.0-0
Scope: errata4.0-4

r67018 | Bug #40509 GRUB: Allow to select kernel to boot YAML
 univention-grub.yaml
Comment 2 Stefan Gohmann univentionstaff 2016-02-01 07:53:28 CET
Code review: failed

See https://forge.univention.org/bugzilla/show_bug.cgi?id=26763#c7
Comment 3 Philipp Hahn univentionstaff 2016-02-01 09:20:12 CET
(In reply to Stefan Gohmann from comment #2)
> Code review: failed

r67078 | Bug #40509 GRUB: Evaulate UCRV as boolean.
 -> is_true()

Package: univention-grub
Version: 8.0.4-4.129.201602010917
Branch: ucs_4.0-0
Scope: errata4.0-4

r67079 | Bug #26763,Bug #40509 GRUB: Evaulate UCRV as boolean YAML
 univention-grub.yaml
Comment 4 Stefan Gohmann univentionstaff 2016-02-02 07:00:05 CET
Code review: OK.

Tests: OK. See Bug #26763 for details. These examples worked for me:
 ucr set grub/default='"Univention Corporate Server, mit Linux 3.16-ucs109-amd64"'
 ucr set grub/default=4
 ucr set grub/default=saved

YAML: OK
Comment 5 Janek Walkenhorst univentionstaff 2016-02-04 15:58:23 CET
<http://errata.software-univention.de/ucs/4.0/396.html>