All checks were successful
bluebuild / Build Custom Image (recipe.yml) (pull_request) Successful in 7m42s
8 lines
440 B
Bash
8 lines
440 B
Bash
#!/usr/bin/env bash
|
|
# Obtained from wayblue project https://github.com/wayblueorg/wayblue/blob/live/files/scripts/regenerateinitramfs.sh
|
|
|
|
set -oue pipefail
|
|
|
|
QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
|
|
/usr/bin/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" |