
On Tue, Nov 03, 2020 at 09:52:21AM +0800, Wu Fengguang wrote:
+ self["vmlinuz_path"] = File.real_path("#{boot_dir}/vmlinuz#{suffix}") + self["modules_path"] = File.real_path("#{boot_dir}/modules#{suffix}.cgz") + self["headers_path"] = File.real_path("#{boot_dir}/headers#{suffix}.cgz")
These look more clear:
vmlinuz_path => linux_kernel_path modules_path => linux_modules_initrd headers_path => linux_headers_initrd
OK
btw, what if we are going to support more OS kernels? Like BSD kernels and other IOT OS.
Just put new kernels into $os_dir/boot/ and give them a name with version, now we have three versions of openeuler20.03, we can see in boot/ there are three kind of versions of vmlinuz for use: ├── vmlinuz-4.19.90-2003 ├── vmlinuz-4.19.90-mysql └── vmlinuz-4.19.90-nginx Thanks, Xijian