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.
This commit is contained in:
parent
49b3630362
commit
c4b965ed88
@ -21,7 +21,7 @@ set timeout=5
|
||||
search --no-floppy --set=root -l '@ISOLABEL@'
|
||||
|
||||
menuentry 'Test media and install @PRODUCT@ @VERSION@' --class fedora --class gnu-linux --class gnu --class os {
|
||||
chainloader @EFIDIR@/xen-check.efi
|
||||
chainloader @EFIDIR@/xen.efi placeholder qubes-check
|
||||
}
|
||||
|
||||
menuentry 'Install @PRODUCT@ @VERSION@' --class fedora --class gnu-linux --class gnu --class os {
|
||||
|
@ -1,7 +1,12 @@
|
||||
[global]
|
||||
default=qubes
|
||||
|
||||
[qubes]
|
||||
[qubes-check]
|
||||
options=loglvl=all
|
||||
kernel=vmlinuz @ROOT@ rd.live.check
|
||||
ramdisk=initrd.img
|
||||
|
||||
[qubes]
|
||||
options=loglvl=all
|
||||
kernel=vmlinuz @ROOT@
|
||||
ramdisk=initrd.img
|
||||
|
@ -11,7 +11,6 @@ mkdir ${EFIBOOTDIR}/fonts/
|
||||
install boot/efi/EFI/*/gcd${efiarch|lower}.efi ${EFIBOOTDIR}/BOOT${efiarch}.efi
|
||||
# keep also under original name to make mkefiboot --apple happy
|
||||
install boot/efi/EFI/*/gcd${efiarch|lower}.efi ${EFIBOOTDIR}/grub${efiarch|lower}.efi
|
||||
install boot/efi/EFI/*/xen*.efi ${EFIBOOTDIR}/xen-check.efi
|
||||
install boot/efi/EFI/*/xen*.efi ${EFIBOOTDIR}/xen.efi
|
||||
install boot/efi/EFI/*/MokManager.efi ${EFIBOOTDIR}/
|
||||
install boot/efi/EFI/*/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/
|
||||
@ -27,8 +26,7 @@ ${make_efiboot("images/efiboot.img", include_kernel=True)}
|
||||
<%
|
||||
kdir = EFIBOOTDIR if include_kernel else KERNELDIR
|
||||
eficonf = "%s/grub.cfg" % (EFIBOOTDIR, )
|
||||
xenconf = "%s/xen-check.cfg" % (EFIBOOTDIR, )
|
||||
xenconf_no_check = "%s/xen.cfg" % (EFIBOOTDIR, )
|
||||
xenconf = "%s/xen.cfg" % (EFIBOOTDIR, )
|
||||
args = "--label=ANACONDA --debug"
|
||||
if disk: args += " --disk"
|
||||
if imgtype == "apple": args += ' --apple --icon=%s --diskname=%s --product="%s %s"' % (APPLE_EFI_ICON, APPLE_EFI_DISKNAME, product.name, product.version)
|
||||
@ -54,8 +52,6 @@ ${make_efiboot("images/efiboot.img", include_kernel=True)}
|
||||
replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${eficonf}
|
||||
replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${xenconf}
|
||||
%endif
|
||||
copy ${xenconf} ${xenconf_no_check}
|
||||
replace rd.live.check '' ${xenconf_no_check}
|
||||
%if efiarch == 'IA32':
|
||||
copy ${eficonf} ${EFIBOOTDIR}/BOOT.conf
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user