OSDN Git Service

4639612746a8c1c1c329b4164b9c61e81323358c
[alterlinux/alterlinux.git] / docs / en / KERNEL.md
1 ## Support new kernel
2
3 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.
4 You need to add two types of packages to the repository. The kernel body and headers package.
5
6
7 ### 1. Create a arch repository
8
9 `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.  
10 You can easily create a repository using GitHub.  
11
12 ### 2. Add to kernel list
13
14 Add the kernel name to `kernel_list`. This variable is used to judge whether the value passed to `build.sh` is correct.  
15 The value to add to the list is the character after `linux-`. In this case it will be `fooo`.  
16
17 ```bash
18 echo "fooo" >> ./system/kernel_list
19 ```
20
21 ### 3. Create the file
22 You need to create some files for the new kernel. Below is a list of files that need to be created.  
23 The easiest way is to rename the existing file, copy it, and fix the path to the kernel.  
24 The file name has been replaced with `fooo`.  
25
26 1. syslinux/x86_64/pxe/archiso_pxe-fooo.cfg
27 2. syslinux/i686/pxe/archiso_pxe-fooo.cfg
28 3. syslinux/x86_64/pxe-plymouth/archiso-fooo.cfg
29 4. syslinux/i686/pxe-plymouth/archiso-fooo.cfg
30 5. syslinux/x86_64/sys/archiso_sys-fooo.cfg
31 6. syslinux/i686/sys/archiso_sys-fooo.cfg
32 7. syslinux/x86_64/sys-plymouth/archiso_sys-fooo.cfg
33 8. syslinux/i686/sys-plymouth/archiso_sys-fooo.cfg
34 9. efiboot/loader/entries/cd/archiso-x86_64-cd-fooo.conf
35 10. efiboot/loader/entries/usb/archiso-x86_64-usb-fooo.conf
36 11. channels/share/airootfs.any/usr/share/calamares/modules/unpackfs/unpackfs-fooo.conf
37 12. channels/share/airootfs.any/usr/share/calamares/modules/initcpio/initcpio-fooo.conf
38
39 These files are installer and boot loader files. Modify the path for each kernel.
40
41 ### 4.Send pull request
42 Please post a pull request [here](https://github.com/FascodeNet/alterlinux/pulls).  
43