Bug 52677 - Installer writes wrong UUID to /boot/efi/debian/grub.cfg if not installed on first hard disk
Installer writes wrong UUID to /boot/efi/debian/grub.cfg if not installed on ...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Grub
UCS 5.0
amd64 Linux
: P5 major (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 42198
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-23 00:30 CET by Knut Jähnig
Modified: 2022-06-21 18:11 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Development Internal
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 Knut Jähnig 2021-01-23 00:30:40 CET
I installed UCS Server Version 5.0 on the third harddisk (2x raid server disk and an ssd for operating system). The Install was finished and the system reboots into a grub shell. (And not into the new installed Server.)


The file /boot/efi/debian/grub.cfg  (as well as /boot/efi/univention/grub.cfg) used the wrong UUID from the first hard disk. 

Recovery: 

For me it helped to run in the grub shell the command: 
 "loadconfig /efi/univetion/grub.cfg" 

You may need to find the correct hard disk with ls, ls (hd2,gpt2),set root=hd2. 
After the system has booted, I manualy changed the UUID to the correct value using the command "sudo blkid /dev/sd*" to find the UUID. 

Pleace fix the installer to set the correct UUID in /boot/efi/debian/grub.cfg.
Comment 1 Ingo Steuwer univentionstaff 2021-03-03 08:10:10 CET
I wonder whether this is Debian Upstream behavior or something introduced in UCS.
Comment 3 Philipp Hahn univentionstaff 2021-03-03 08:34:44 CET
(In reply to Ingo Steuwer from comment #1)
> I wonder whether this is Debian Upstream behavior or something introduced in
> UCS.

<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611045> is still open.
For UCS see Bug #42198.

Maybe the "wrong" questions are pre-seeded in repo-ng → build-cd/build-cd-ucs4 → preseed.cfg:
> d-i grub-installer/only_debian boolean true
> grub-pc grub-pc/install_devices multiselect
> grub-pc grub-pc/install_devices_empty boolean true

We have already changed them multiple times of the years to:
- make installation on single-disk (VMs) automatic
Comment 4 Ingo Steuwer univentionstaff 2021-04-28 10:25:50 CEST
Should be fixed upstream first.
Comment 5 Erik Damrose univentionstaff 2021-12-13 19:38:34 CET
Moving Milestone, upstream bug not fixed for 5.0-1
Comment 6 Erik Damrose univentionstaff 2022-06-21 18:11:15 CEST
The upstream bug is still not fixed, removing the target milestone