lorax-templates-qubes: use only explicit kernel-qubes-vm packages
Don't include all kernel-qubes-vm packages from qubes-dom0 repo, only those explicitly placed in dom0-updates repo. Also, do not include a copy of the newest one.
This commit is contained in:
parent
55877f867c
commit
9b4483caa7
@ -35,16 +35,18 @@ install ${configdir}/grub.conf ${BOOTDIR}
|
||||
install usr/share/anaconda/boot/syslinux-splash.png ${BOOTDIR}/splash.png
|
||||
install boot/memtest* ${BOOTDIR}/memtest
|
||||
|
||||
mkdir ${EXTRAKERNELS}
|
||||
# bypass "chroot" enforced by Lorax parser
|
||||
-install ../../../../yum/qubes-dom0/rpm/kernel-qubes-vm-[0-9]*rpm ${EXTRAKERNELS}
|
||||
|
||||
## install kernels
|
||||
mkdir ${KERNELDIR}
|
||||
<%
|
||||
sortedkernels = sorted(kernels, key=lambda k: LooseVersion(k['version']))
|
||||
latestkernel = sortedkernels[-1]
|
||||
%>
|
||||
|
||||
mkdir ${EXTRAKERNELS}
|
||||
# bypass "chroot" enforced by Lorax parser
|
||||
-install ../../../../yum/dom0-updates/rpm/kernel-qubes-vm-[0-9]*rpm ${EXTRAKERNELS}
|
||||
-remove ${EXTRAKERNELS}/kernel-qubes-vm-${latestkernel.version}.rpm
|
||||
|
||||
%for kernel in sortedkernels:
|
||||
# Use short kernel version because of ISO9660 filename length limitation
|
||||
<%
|
||||
|
Loading…
Reference in New Issue
Block a user