mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-09 03:48:10 +00:00
Alpine fixes (#489)
This commit is contained in:
parent
974753f408
commit
0eca0bd027
@ -20,7 +20,7 @@ package_dir: "/package"
|
|||||||
prelude:
|
prelude:
|
||||||
- apk update
|
- apk update
|
||||||
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
||||||
- apk add linux-rpi4 linux-firmware-none mkinitfs eudev eudev-hwids mdadm-udev device-mapper-udev lvm2 findmnt rsync parted cryptsetup multipath-tools openrc blkid
|
- apk add linux-rpi4 linux-firmware-none mkinitfs dbus 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}"
|
- kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||||
- mkdir -p /package/boot
|
- mkdir -p /package/boot
|
||||||
@ -53,7 +53,7 @@ package_dir: "/package"
|
|||||||
prelude:
|
prelude:
|
||||||
- apk update
|
- apk update
|
||||||
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
# multipath-tools and cryptsetup is needed to bring modules and udev rules
|
||||||
- apk add linux-lts linux-firmware-none mkinitfs eudev eudev-hwids mdadm-udev device-mapper-udev lvm2 findmnt rsync parted cryptsetup multipath-tools openrc blkid
|
- apk add linux-lts linux-firmware-none mkinitfs dbus 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}"
|
- kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||||
- mkdir -p /package/boot
|
- mkdir -p /package/boot
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "alpine"
|
- name: "alpine"
|
||||||
category: "distro-kernel"
|
category: "distro-kernel"
|
||||||
version: "6.1.56-2"
|
version: "6.1.56-3"
|
||||||
description: "Provides kernel and custom initrd for alpine"
|
description: "Provides kernel and custom initrd for alpine"
|
||||||
labels:
|
labels:
|
||||||
autobump.strategy: "custom"
|
autobump.strategy: "custom"
|
||||||
@ -14,7 +14,7 @@ packages:
|
|||||||
package.version: "6.1.56"
|
package.version: "6.1.56"
|
||||||
- name: "alpine-rpi"
|
- name: "alpine-rpi"
|
||||||
category: "distro-kernel"
|
category: "distro-kernel"
|
||||||
version: "6.1.55-2"
|
version: "6.1.55-3"
|
||||||
description: "Provides kernel and custom initrd for alpine"
|
description: "Provides kernel and custom initrd for alpine"
|
||||||
labels:
|
labels:
|
||||||
autobump.strategy: "custom"
|
autobump.strategy: "custom"
|
||||||
|
@ -15,3 +15,4 @@
|
|||||||
/usr/sbin/parted
|
/usr/sbin/parted
|
||||||
/sbin/openrc
|
/sbin/openrc
|
||||||
/sbin/openrc-run
|
/sbin/openrc-run
|
||||||
|
/usr/bin/dbus-uuidgen
|
@ -1,4 +1,4 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
category: "static"
|
||||||
version: "1.1.1"
|
version: "1.1.2"
|
||||||
|
@ -123,9 +123,10 @@ stages:
|
|||||||
name: "Restore /etc/machine-id for systemd systems"
|
name: "Restore /etc/machine-id for systemd systems"
|
||||||
commands:
|
commands:
|
||||||
- cat /usr/local/etc/machine-id > /etc/machine-id
|
- cat /usr/local/etc/machine-id > /etc/machine-id
|
||||||
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ -s /var/lib/dbus/machine-id ] && [ -f "/sbin/openrc" ]'
|
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ -f "/sbin/openrc" ]'
|
||||||
name: "Restore /etc/machine-id for openrc systems"
|
name: "Restore /etc/machine-id for openrc systems"
|
||||||
commands:
|
commands:
|
||||||
|
- dbus-uuidgen --ensure # This makes sure that the machine-id exists and its valid
|
||||||
- cat /var/lib/dbus/machine-id > /etc/machine-id
|
- cat /var/lib/dbus/machine-id > /etc/machine-id
|
||||||
fs:
|
fs:
|
||||||
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ ! -s /usr/local/etc/machine-id ] '
|
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ ! -s /usr/local/etc/machine-id ] '
|
||||||
|
@ -49,7 +49,7 @@ stages:
|
|||||||
- chown -R root:admin /usr/local/cloud-config
|
- chown -R root:admin /usr/local/cloud-config
|
||||||
- chmod 770 /usr/local/cloud-config
|
- chmod 770 /usr/local/cloud-config
|
||||||
- name: "Enable serial login for alpine" # https://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot
|
- name: "Enable serial login for alpine" # https://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot
|
||||||
if: '[ -e /sbin/rc-service ]'
|
if: '[ -e /sbin/openrc ]'
|
||||||
commands:
|
commands:
|
||||||
- sed -i -e 's/ttyS0.*//g' /etc/inittab
|
- sed -i -e 's/ttyS0.*//g' /etc/inittab
|
||||||
- echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >> /etc/inittab
|
- echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >> /etc/inittab
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
initramfs.before:
|
initramfs.before:
|
||||||
- name: "Setup hybrid cgroups"
|
- name: "Setup hybrid cgroups"
|
||||||
if: '[ -e /sbin/rc-service ]'
|
if: '[ -e /etc/rc.conf ]'
|
||||||
commands:
|
commands:
|
||||||
- echo 'rc_cgroup_mode="hybrid"' >> /etc/rc.conf
|
- echo 'rc_cgroup_mode="hybrid"' >> /etc/rc.conf
|
||||||
- echo 'rc_cgroup_controllers="cpuset cpu io memory hugetlb pids"' >> /etc/rc.conf
|
- echo 'rc_cgroup_controllers="cpuset cpu io memory hugetlb pids"' >> /etc/rc.conf
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
initramfs.before:
|
initramfs.before:
|
||||||
- name: "Blacklist bpfilter on Alpine ( bug: https://github.com/kairos-io/kairos/issues/277 )"
|
- name: "Blacklist bpfilter on Alpine ( bug: https://github.com/kairos-io/kairos/issues/277 )"
|
||||||
if: '[ -e /sbin/rc-service ]'
|
if: '[ -e /sbin/openrc ]'
|
||||||
commands:
|
commands:
|
||||||
- echo "install bpfilter /bin/false" > /etc/modprobe.d/blacklist_bpfilter.conf
|
- echo "install bpfilter /bin/false" > /etc/modprobe.d/blacklist_bpfilter.conf
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
boot.before:
|
boot.before:
|
||||||
- name: "Setup higher limit for open files"
|
- name: "Setup higher limit for open files"
|
||||||
if: '[ -e /sbin/rc-service ]'
|
if: '[ -e /etc/rc.conf ]'
|
||||||
commands:
|
commands:
|
||||||
- echo 'rc_ulimit="-n 1048576"' >> /etc/rc.conf
|
- echo 'rc_ulimit="-n 1048576"' >> /etc/rc.conf
|
||||||
|
@ -26,7 +26,7 @@ stages:
|
|||||||
- echo "tty1::respawn:/usr/bin/kairos-agent interactive-install --shell" >> /etc/inittab
|
- echo "tty1::respawn:/usr/bin/kairos-agent interactive-install --shell" >> /etc/inittab
|
||||||
boot:
|
boot:
|
||||||
- if: |
|
- if: |
|
||||||
[ "$(kairos-agent state get boot)" == "livecd_boot" ] && [ -f "/sbin/openrc" ]
|
[ "$(kairos-agent state get boot)" == "livecd_boot" ] && [ -f "/sbin/rc-service" ]
|
||||||
commands:
|
commands:
|
||||||
- rc-service kairos-webui start
|
- rc-service kairos-webui start
|
||||||
- if: |
|
- if: |
|
||||||
|
Loading…
Reference in New Issue
Block a user