Suse: Pass --oldpackage to zypper install. This allows using older kernel versions without having to handle installation by hand, while apparently not preventing installing a newer version.

This commit is contained in:
Tk-Glitch
2023-09-09 15:36:59 +02:00
parent 44e228cc0f
commit 65dc6bda2f

View File

@@ -287,7 +287,7 @@ if [ "$1" = "install" ]; then
fi
msg2 "Some files from 'linux-glibc-devel' will be replaced by files from the custom kernel-hearders package"
msg2 "To revert back to the original kernel headers do 'sudo zypper install -f linux-glibc-devel'"
sudo zypper install --allow-unsigned-rpm $_kernel_rpm $_kernel_devel_rpm $_kernel_syms_rpm
sudo zypper install --oldpackage --allow-unsigned-rpm $_kernel_rpm $_kernel_devel_rpm $_kernel_syms_rpm
fi
if [ "$_distro" = "Suse" ]; then