mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-18 07:52:19 +00:00
For easy debugging Also fixes missing stuff on dracut build to be able to still run the cos-setup-rootfs/initramfs services and adds the missing elemental binary to the initramfs. As we remove the cos-immutable-rootfs module for dracut then both the services and binary doesnt get included. Signed-off-by: Itxaka <itxaka@spectrocloud.com>
35 lines
744 B
Bash
Executable File
35 lines
744 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# called by dracut
|
|
check() {
|
|
require_binaries "$systemdutildir"/systemd || return 1
|
|
return 255
|
|
}
|
|
|
|
# called by dracut
|
|
depends() {
|
|
echo systemd rootfs-block dm fs-lib
|
|
#tpm2-tss
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
installkernel() {
|
|
instmods overlay
|
|
}
|
|
|
|
# called by dracut
|
|
install() {
|
|
declare moddir=${moddir}
|
|
declare systemdutildir=${systemdutildir}
|
|
declare systemdsystemunitdir=${systemdsystemunitdir}
|
|
|
|
# Add missing elemental binary, drop once we get yip lib inside immucore as its only needed to run the stages
|
|
inst_multiple \
|
|
immucore elemental
|
|
|
|
inst_script "${moddir}/generator.sh" \
|
|
"${systemdutildir}/system-generators/immucore-generator"
|
|
|
|
dracut_need_initqueue
|
|
} |