Commit Graph

19 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
2f3063da20
lorax-templates-qubes: break the build if efiboot.img is too big
Break the build instead of producing broken boot image.
2018-09-16 03:40:12 +02:00
Marek Marczykowski-Górecki
ae8b332ca8
lorax-templates-qubes: boot xen.efi directly, bypass grub
Grub cause problems while loading xen.efi on many machines, mostly
because xen.efi support loading dom0 kernel and initramfs only via EFI
services and xen.efi needs to be loaded through them too. But grub in
some cases uses own filesystem handling code instead, leaving xen.efi
without dom0 kernel.

This should improve when xen.efi will get multiboot2 support (Xen 4.10?)
- then grub could load dom0 kernel and initramfs too and pass them to
xen.efi.

For now, bypass grub and launch xen.efi directly. This have unfortunate
effect of not having boot menu, so choose the most universal option:
verbose, with all known workarounds for UEFI applied.

Fixes QubesOS/qubes-issues#3505
2018-01-30 06:06:40 +01:00
Marek Marczykowski-Górecki
f9bb3b2f33
lorax-templates-qubes: make initrd for EFI smaller
Skip system-wide dracut config, specifically
/etc/dracut.conf.d/plymouth-missing-fonts.conf, which loads 'label'
plymouth plugin, which in turn pulls a lot of libraries (including
libX11).

QubesOS/qubes-issues#2412
2017-05-29 04:17:18 +02:00
Marek Marczykowski-Górecki
d706bb5d31
lorax-templates-qubes: provide dummy /proc/modules for dracut
Updated dracut don't like not having /proc/modules - modules
installation routines fails then, producing initramfs without kernel
modules at all. Empty /proc/modules is enough to avoid this.

QubesOS/qubes-issues#2574
2017-02-14 02:37:52 +01:00
Marek Marczykowski-Górecki
221d6af261
lorax: fix "System Volume Information" directory creation
Fixes QubesOS/qubes-issues#2051
2016-07-14 02:36:33 +02:00
Marek Marczykowski-Górecki
c9a10727cf
lorax: add "System Volume Information" to ESP image
When installation image is written on Windows, it automatically (by the
OS) gets mounted and Windows create "System Volume Information" there.
This obviously means the installation media is modified and then fails
verification.
This is really wrong from the Windows side to automatically modify some
files behind users back. But since we can prevent this with really low
cost by just creating those files ourself and reduce a lot of user
confusion, just do it.

Thanks @pbatard for the help.

Fixes QubesOS/qubes-issues#2051
2016-06-07 17:18:58 +02:00
M. Vefa Bicakci
ba30700ef7
lorax: Do not fail if EFI directory already exists 2016-04-21 19:56:23 +02:00
M. Vefa Bicakci
ae2b86842f
lorax: EFI: Reduce size, add --no-hostonly, force squashfs inclusion and clean up 2016-04-10 00:00:00 -04:00
M. Vefa Bicakci
5cf84c9b18
lorax: Make Qubes EFI template compatible with Python 3 2016-04-10 00:00:00 -04:00
Jon Griffiths
3b537db04c lorax: Create the qubes directory before calling dracut 2016-03-28 13:05:21 +13:00
Jon Griffiths
20df6b00ff lorax: Don't disable network for efi image creation
Doing so prevents livenet from loading and causes dracut to fail.
2016-03-28 13:04:58 +13:00
Marek Marczykowski-Górecki
4fa5c591f8 lorax: exclude SCSI and misc modules from UEFI initrd
One more time - save on efiboot.img size.
2015-09-25 16:25:43 +02:00
Marek Marczykowski-Górecki
7e867fd810 lorax: remove SecureBoot files - save some space in efiboot.img 2015-09-25 16:25:06 +02:00
Marek Marczykowski-Górecki
44dc8e0278 lorax: do not create macboot.img - it will be too big anyway 2015-09-25 16:25:05 +02:00
Marek Marczykowski-Górecki
b024e93e40 lorax: remove network support from UEFI initrd
Reduce its size to have efiboot.img under 32MB.
This needs rebuilding initrd and we need kernel version for that - so pass it
down from x86.tmpl.
2015-09-25 16:24:53 +02:00
Marek Marczykowski-Górecki
c4b965ed88 lorax: select xen.cfg section to enable/disable media check
Apparently all but first parameters are passed to xen.efi, so it is possible to
select which config section should be used. This makes xen.efi copy
unnecessary.
2015-09-21 18:09:34 +02:00
Marek Marczykowski-Górecki
49b3630362 lorax: disable UEFI Secure Boot shim
We don't have signed xen/kernel/initramfs binaries. And more
importantly, we don't have MS-signed key...
2015-09-21 18:09:33 +02:00
Marek Marczykowski-Górecki
ff30f25718
lorax: preliminary EFI support 2015-08-05 02:12:11 +02:00
Marek Marczykowski
a25ae51162 lorax: add lorax-templates-qubes package - for now with fc18 templates 2013-01-24 11:50:02 +01:00