mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-17 16:00:28 +00:00
Move kernel+initrd package to provide only scripts (#503)
This commit is contained in:
@@ -1,70 +1,10 @@
|
|||||||
{{ if eq .Values.name "alpine-rpi" }}
|
|
||||||
{{ if .Values.arch }}
|
|
||||||
{{ if eq .Values.arch "arm64" }}
|
|
||||||
image: alpine
|
image: alpine
|
||||||
# Arm + rpi
|
|
||||||
copy:
|
|
||||||
- package:
|
|
||||||
category: "system"
|
|
||||||
name: "immucore"
|
|
||||||
version: ">=0"
|
|
||||||
source: "/usr/bin/immucore"
|
|
||||||
destination: "/usr/bin/immucore"
|
|
||||||
- package:
|
|
||||||
category: "system"
|
|
||||||
name: "kairos-agent"
|
|
||||||
version: ">=0"
|
|
||||||
source: "/usr/bin/kairos-agent"
|
|
||||||
destination: "/usr/bin/kairos-agent"
|
|
||||||
package_dir: "/package"
|
package_dir: "/package"
|
||||||
prelude:
|
|
||||||
- apk update
|
|
||||||
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
|
||||||
- apk add linux-rpi4 linux-firmware-none mkinitfs dbus cloud-utils-growpart e2fsprogs e2fsprogs-extra xfsprogs xfsprogs-extra sgdisk eudev eudev-hwids mdadm-udev device-mapper-udev lvm2 findmnt rsync parted cryptsetup multipath-tools openrc blkid
|
|
||||||
steps:
|
steps:
|
||||||
- kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
- mkdir -p /packages/etc/mkinitfs/features.d
|
||||||
- mkdir -p /package/boot
|
- mkdir -p /packages/etc/mkinitfs/
|
||||||
- mkdir -p /package/lib/modules
|
- mkdir -p /packages/usr/share/mkinitfs/
|
||||||
- cp /boot/vmlinuz-rpi4 /package/boot/vmlinuz
|
- cp files/immucore.files /packages/etc/mkinitfs/features.d/immucore.files
|
||||||
- cp -rfv /lib/modules/* /package/lib/modules
|
- cp files/tpm.modules /packages/etc/mkinitfs/features.d/tpm.modules
|
||||||
# generate initramfs
|
- cp files/mkinitfs.conf /packages/etc/mkinitfs/mkinitfs.conf
|
||||||
- cp files/immucore.files /etc/mkinitfs/features.d/immucore.files
|
- cp files/initramfs-init /packages/usr/share/mkinitfs/initramfs-init
|
||||||
- cp files/tpm.modules /etc/mkinitfs/features.d/tpm.modules
|
|
||||||
- kernel=$(ls /lib/modules | head -n1) && mkinitfs -o /package/boot/initrd -i files/initramfs-init -c files/mkinitfs.conf $kernel
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
{{else}}
|
|
||||||
image: alpine
|
|
||||||
# x86 + arm + no rpi path
|
|
||||||
copy:
|
|
||||||
- package:
|
|
||||||
category: "system"
|
|
||||||
name: "immucore"
|
|
||||||
version: ">=0"
|
|
||||||
source: "/usr/bin/immucore"
|
|
||||||
destination: "/usr/bin/immucore"
|
|
||||||
- package:
|
|
||||||
category: "system"
|
|
||||||
name: "kairos-agent"
|
|
||||||
version: ">=0"
|
|
||||||
source: "/usr/bin/kairos-agent"
|
|
||||||
destination: "/usr/bin/kairos-agent"
|
|
||||||
package_dir: "/package"
|
|
||||||
prelude:
|
|
||||||
- apk update
|
|
||||||
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
|
||||||
- apk add linux-lts linux-firmware-none mkinitfs dbus cloud-utils-growpart e2fsprogs e2fsprogs-extra xfsprogs xfsprogs-extra sgdisk eudev eudev-hwids mdadm-udev device-mapper-udev lvm2 findmnt rsync parted cryptsetup multipath-tools openrc blkid
|
|
||||||
steps:
|
|
||||||
- kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
|
||||||
- mkdir -p /package/boot
|
|
||||||
- mkdir -p /package/lib/modules
|
|
||||||
# TODO: Add firmware files
|
|
||||||
- cp /boot/vmlinuz-lts /package/boot/vmlinuz
|
|
||||||
- cp -rfv /lib/modules/* /package/lib/modules
|
|
||||||
# generate initramfs
|
|
||||||
- cp files/immucore.files /etc/mkinitfs/features.d/immucore.files
|
|
||||||
- cp files/tpm.modules /etc/mkinitfs/features.d/tpm.modules
|
|
||||||
- kernel=$(ls /lib/modules | head -n1) && mkinitfs -o /package/boot/initrd -i files/initramfs-init -c files/mkinitfs.conf $kernel
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,27 +1,7 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "alpine"
|
- name: "alpine"
|
||||||
category: "distro-kernel"
|
category: "initrd"
|
||||||
version: "6.1.56-6"
|
version: "3.8.1"
|
||||||
description: "Provides kernel and custom initrd for alpine"
|
description: "Provides custom initrd scripts for alpine"
|
||||||
labels:
|
# This syncs with the alpine version at https://gitlab.alpinelinux.org/alpine/mkinitfs/-/blob/master/initramfs-init.in?ref_type=heads
|
||||||
autobump.strategy: "custom"
|
# any changes to the initramfs-init.in file should be looked at and backported if necessary
|
||||||
autobump.string_replace: '{ "prefix": "" }'
|
|
||||||
autobump.prefix: "prefix"
|
|
||||||
autobump.hook: |
|
|
||||||
curl -s https://raw.githubusercontent.com/alpinelinux/aports/3.18-stable/main/linux-lts/APKBUILD | grep "pkgver=" | awk -F"=" '{print $2}'
|
|
||||||
autobump.version_hook: |
|
|
||||||
curl -s https://raw.githubusercontent.com/alpinelinux/aports/3.18-stable/main/linux-lts/APKBUILD | grep "pkgver=" | awk -F"=" '{print $2}'
|
|
||||||
package.version: "6.1.56"
|
|
||||||
- name: "alpine-rpi"
|
|
||||||
category: "distro-kernel"
|
|
||||||
version: "6.1.55-6"
|
|
||||||
description: "Provides kernel and custom initrd for alpine"
|
|
||||||
labels:
|
|
||||||
autobump.strategy: "custom"
|
|
||||||
autobump.string_replace: '{ "prefix": "" }'
|
|
||||||
autobump.prefix: "prefix"
|
|
||||||
autobump.hook: |
|
|
||||||
curl -s https://raw.githubusercontent.com/alpinelinux/aports/3.18-stable/main/linux-rpi/APKBUILD | grep "pkgver=" | awk -F"=" '{print $2}'
|
|
||||||
autobump.version_hook: |
|
|
||||||
curl -s https://raw.githubusercontent.com/alpinelinux/aports/3.18-stable/main/linux-rpi/APKBUILD | grep "pkgver=" | awk -F"=" '{print $2}'
|
|
||||||
package.version: "6.1.55"
|
|
Reference in New Issue
Block a user