mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-04-27 19:35:22 +00:00
Add /tmp/oem to scan dirs for config
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
f62b4d5667
commit
155f1c5283
23
Earthfile
23
Earthfile
@ -15,29 +15,6 @@ build-challenger:
|
||||
image:
|
||||
FROM $BASE_IMAGE
|
||||
ARG IMAGE
|
||||
# TEST KCRYPT FROM BRANCH
|
||||
ARG KCRYPT_DEV
|
||||
ARG KCRYPT_DEV_BRANCH=main
|
||||
IF [ "$KCRYPT_DEV" = "true" ]
|
||||
RUN rm /usr/bin/kcrypt
|
||||
COPY github.com/kairos-io/kcrypt:$KCRYPT_DEV_BRANCH+build-kcrypt/kcrypt /usr/bin/kcrypt
|
||||
END
|
||||
ARG IMMUCORE_DEV
|
||||
ARG IMMUCORE_DEV_BRANCH=master
|
||||
IF [ "$IMMUCORE_DEV" = "true" ]
|
||||
RUN rm -Rf /usr/lib/dracut/modules.d/28immucore
|
||||
RUN rm /etc/dracut.conf.d/10-immucore.conf
|
||||
RUN rm /etc/dracut.conf.d/02-kairos-setup-initramfs.conf || exit 0
|
||||
RUN rm /etc/dracut.conf.d/50-kairos-initrd.conf || exit 0
|
||||
COPY github.com/kairos-io/immucore:$IMMUCORE_DEV_BRANCH+build-immucore/immucore /usr/bin/immucore
|
||||
COPY github.com/kairos-io/immucore:$IMMUCORE_DEV_BRANCH+dracut-artifacts/28immucore /usr/lib/dracut/modules.d/28immucore
|
||||
COPY github.com/kairos-io/immucore:$IMMUCORE_DEV_BRANCH+dracut-artifacts/10-immucore.conf /etc/dracut.conf.d/10-immucore.conf
|
||||
# Need to rerun dracut so the updated binaries get in the initramfs
|
||||
RUN --no-cache kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||
RUN --no-cache kernel=$(ls /lib/modules | head -n1) && dracut -f "/boot/initrd-${kernel}" "${kernel}" && ln -sf "initrd-${kernel}" /boot/initrd
|
||||
END
|
||||
|
||||
# END
|
||||
COPY +build-challenger/kcrypt-discovery-challenger /system/discovery/kcrypt-discovery-challenger
|
||||
SAVE IMAGE $IMAGE
|
||||
|
||||
|
@ -29,7 +29,7 @@ func unmarshalConfig() (Config, error) {
|
||||
var result Config
|
||||
|
||||
o := &collector.Options{NoLogs: true}
|
||||
if err := o.Apply(collector.Directories(kconfig.ConfigScanDirs...)); err != nil {
|
||||
if err := o.Apply(collector.Directories(append(kconfig.ConfigScanDirs, "/tmp/oem")...)); err != nil {
|
||||
return result, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user