anaconda+lorax: install 3.11 VM kernel in addition to default one (#868)
DispVM have problems on newer kernels (details in ticket description).
This commit is contained in:
parent
c066d85b06
commit
277c6dde71
@ -5,6 +5,10 @@ for pkg in /run/install/repo/extrakernels/*.rpm; do
|
||||
rpm --root=$ANA_INSTALL_PATH -q $name > /dev/null || rpm --root=$ANA_INSTALL_PATH -i --oldpackage $pkg
|
||||
done
|
||||
|
||||
# Set default VM kernel back to newest one
|
||||
kver=`ls /var/lib/qubes/vm-kernels|sort -n|tail -1`
|
||||
chroot $ANA_INSTALL_PATH qubes-prefs -s default-kernel $kver
|
||||
|
||||
# Set grub default to the current kernel if running not the latest one
|
||||
latest=`basename /run/install/repo/Packages/k/kernel-[0-9]*.rpm .rpm|cut -d- -f2-`
|
||||
if [ "$latest" != "`uname -r`" ]; then
|
||||
|
@ -31,6 +31,7 @@ install boot/memtest* ${BOOTDIR}/memtest
|
||||
mkdir ${EXTRAKERNELS}
|
||||
# bypass "chroot" enforced by Lorax parser
|
||||
install ../../../../yum/qubes-dom0/rpm/kernel-[0-9]*rpm ${EXTRAKERNELS}
|
||||
install ../../../../yum/qubes-dom0/rpm/kernel-qubes-vm-3.11*rpm ${EXTRAKERNELS}
|
||||
|
||||
## install kernels
|
||||
mkdir ${KERNELDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user