New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0-rc4 EFI installation has duplicates in xen.cfg & missing Rescue option #3624

Open
eduncan911 opened this Issue Feb 23, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@eduncan911

Qubes OS version:

4.0-RC4

Affected TemplateVMs:

EFI booting: /boot/efi/EFI/qubes/xen.cfg


Steps to reproduce the behavior:

  • Install Qubes 4.0-RC4 on an EFI-only machine (tested on Apple hardware).
  • Boot system and look at /boot/efi/EFI/qubes/xen.cfg entries

Expected behavior:

Something like this would be more user friendly for a default Qubes installation:

[global]
default=qubes-4.14.13-2

[qubes-4.14.13-2]
options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx
kernel=vmlinuz-4.14.13-2.pvops.qubes.x86_64 root=/dev/mapper/qubes_dom0-root rd.lvm.lv=qubes_dom0/root rd.lvm.lv=qubes_dom0/swap i915.preliminary_hw_support=1 rhgb quiet
ramdisk=initramfs-4.14.13-2.pvops.qubes.x86_64.img

[qubes-4.14.13-2-rescue]
options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx
kernel=vmlinuz-4.14.13-2.pvops.qubes.x86_64 rescue
ramdisk=initramfs-4.14.13-2.pvops.qubes.x86_64.img

Actual behavior:

This is currently written:

[global]
default=4.14.13-2.pvops.qubes.x86_64

[4.14.13-2.pvops.qubes.x86_64]
options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx
kernel=vmlinuz-4.14.13-2.pvops.qubes.x86_64 root=/dev/mapper/qubes_dom0-root rd.lvm.lv=qubes_dom0/root rd.lvm.lv=qubes_dom0/swap i915.preliminary_hw_support=1 rhgb quiet
ramdisk=initramfs-4.14.13-2.pvops.qubes.x86_64.img

[4.14.13-2.pvops.qubes.x86_64]
options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx
kernel=vmlinuz-4.14.13-2.pvops.qubes.x86_64 root=/dev/mapper/qubes_dom0-root rd.lvm.lv=qubes_dom0/root rd.lvm.lv=qubes_dom0/swap i915.preliminary_hw_support=1 rhgb quiet
ramdisk=initramfs-4.14.13-2.pvops.qubes.x86_64.img

General notes:

Shortening the names would make it simpler for EFI Shell booting of Xen with parameters.

Also, I've only been testing and submitting patches for 4.0 RC4 on different Apple hardware. Looking at the bootloader.py, there doesn't seem to be anything specific to Apple when it comes to writing the xen.cfg.

Therefore, it seems global to all EFI-only installations.


@andrewdavidwong andrewdavidwong added this to the Release 4.0 milestone Feb 23, 2018

marmarek added a commit to marmarek/qubes-installer-qubes-os that referenced this issue Mar 28, 2018

anaconda: avoid adding duplicated kernel entries
List kernel versions without duplicates, even when there are multiple
files related to the same kernel version.
Duplicated kernel versions here caused regenerating initramfs multiple
times and duplicated entries in xen.cfg.

QubesOS/qubes-issues#3624

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Mar 28, 2018

Closed

installer-qubes-os v4.0-1-qubes-release (r4.0) #467

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Apr 18, 2018

Closed

installer-qubes-os v25.20.9-12-anaconda (r4.0) #484

marmarek added a commit to QubesOS/qubes-installer-qubes-os that referenced this issue May 28, 2018

anaconda: avoid adding duplicated kernel entries
List kernel versions without duplicates, even when there are multiple
files related to the same kernel version.
Duplicated kernel versions here caused regenerating initramfs multiple
times and duplicated entries in xen.cfg.

QubesOS/qubes-issues#3624

(cherry picked from commit 7c67b93)

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Jul 14, 2018

Closed

installer-qubes-os v3.2-2-qubes-release (r3.2) #582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment