This is the procedure to make Alter Linux compatible with the new kernel. Here we explain the procedure to add linux-fooo. Replace this character when you do.
You need to add two types of packages to the repository. The kernel body and headers package.
build.sh tries to install the kernel using pacman. If you want to add a kernel that is not in the official repository, first create a pacman repository.
You can easily create a repository using GitHub.
Add the kernel name to kernel_list. This variable is used to judge whether the value passed to build.sh is correct.
The value to add to the list is the character after linux-. In this case it will be fooo.
echo "fooo" >> ./system/kernel_listYou need to create 6 files for that kernel. Below is a list of kernels.
The easiest way is to rename the existing file, copy it, and fix the path to the kernel.
The file name has been replaced with fooo.
- syslinux/pxe/archiso_pxe-fooo.cfg
- syslinux/pxe-plymouth/archiso-fooo.cfg
- syslinux/sys/archiso_sys-fooo.cfg
- syslinux/sys-plymouth/archiso_sys-fooo.cfg
- efiboot/loader/entries/cd/archiso-x86_64-cd-fooo.conf
- efiboot/loader/entries/usb/archiso-x86_64-usb-fooo.conf
- airootfs/usr/share/calamares/modules/unpackfs/unpackfs-fooo.conf
- airootfs/usr/share/calamares/modules/initcpio/initcpio-fooo.conf
Change the paths on lines 7, 18, and 29.
Change the path on line 7.
Change the path on the second line.
Change the paths on lines 95 and 97.
Change the path on line 18.
Please post a pull request here.