mirror of
https://github.com/kairos-io/packages.git
synced 2025-07-31 23:27:40 +00:00
Fixup ubuntu kernel package
This commit is contained in:
parent
86af821583
commit
cca8570a2c
@ -1,12 +1,4 @@
|
||||
image: "{{.Values.image}}:{{.Values.image_tag}}"
|
||||
excludes:
|
||||
- ^/boot/grub2
|
||||
- ^/boot/initrd
|
||||
|
||||
unpack: true
|
||||
includes:
|
||||
- ^/boot|^/boot/.*
|
||||
- ^/lib/modules|^/lib/modules.*
|
||||
|
||||
steps:
|
||||
{{ if .Values.distribution }}
|
||||
@ -40,3 +32,24 @@ steps:
|
||||
{{end}}
|
||||
{{end}}
|
||||
- kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||
{{if eq .Values.distribution "ubuntu" }}
|
||||
- mkdir -p /package/boot
|
||||
- mkdir -p /package/lib/modules
|
||||
- cp -rfv /boot/* /package/boot
|
||||
- cp -rfv /lib/modules/* /package/lib/modules
|
||||
- rm -rf /package/boot/grub2 || true
|
||||
- rm -rf /package/boot/grub || true
|
||||
- rm -rf /package/boot/initrd || true
|
||||
- rm -rf /package/boot/initrd.* || true
|
||||
package_dir: "/package"
|
||||
{{ else }}
|
||||
|
||||
includes:
|
||||
- ^/boot|^/boot/.*
|
||||
- ^/lib/modules|^/lib/modules.*
|
||||
excludes:
|
||||
- ^/boot/grub2
|
||||
- ^/boot/initrd
|
||||
unpack: true
|
||||
|
||||
{{end}}
|
||||
|
@ -16,7 +16,7 @@ packages:
|
||||
- category: "distro-kernels"
|
||||
name: "ubuntu"
|
||||
image_tag: "20.04"
|
||||
version: "20.04+1"
|
||||
version: "20.04+2"
|
||||
image: "ubuntu"
|
||||
distribution: "ubuntu"
|
||||
packages: "linux-image-generic-hwe-20.04 dracut dracut-network"
|
Loading…
Reference in New Issue
Block a user