feat(ostree-images): import river template files from wayblue

This commit is contained in:
Alexander Navarro 2024-11-06 11:23:10 -03:00
parent 3f8e44008c
commit 576311545e
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
60 changed files with 2169 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Tell build process to exit if there are any errors.
set -oue pipefail
rpm-ostree cliwrap install-to-root /
QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible -v --add ostree -f "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
chmod 0600 "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"