Skip to content

Commit cdc4e2f

Browse files
yockgenchrngc
andauthored
Enabling RCD DLStreamer (#459)
* Adding RCD dlstreamer template Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com> * Solved SBOM issue (rpm -qa) from image-templates/rcd10-x86_64-dlstreamer.yml by adding sqlite (#447) * Fixing fake errors reported for UKI build Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com> --------- Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com> Co-authored-by: chrngc <149708414+chrngc@users.noreply.github.com>
1 parent e36f7cc commit cdc4e2f

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

image-templates/rcd10-x86_64-dlstreamer.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,30 @@ target:
99
imageType: raw # Image type, valid value: [raw, iso].
1010

1111
packageRepositories:
12+
- codename: "EdgeAI"
13+
url: "https://yum.repos.intel.com/edgeai/"
14+
pkey: "https://yum.repos.intel.com/edgeai/GPG-PUB-KEY-INTEL-DLS.gpg" # Uncomment and replace in real config
15+
1216
- codename: "edge-base"
1317
url: "https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/3.0/base"
1418
pkey: "https://raw.githubusercontent.com/open-edge-platform/edge-microvisor-toolkit/refs/heads/3.0/SPECS/edge-repos/INTEL-RPM-GPG-KEY" # Uncomment and replace in real config
1519
allowPackages:
1620
- kernel-drivers-gpu
1721
- kernel
1822
- grub2-configuration
23+
- linux-firmware-i915
24+
- libva-intel-media-driver
25+
- libva-utils
26+
- intel-gmmlib
27+
28+
- codename: "OpenVINO"
29+
url: "https://yum.repos.intel.com/openvino/"
30+
pkey: "https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB" # Uncomment and replace in real config
31+
32+
- codename: "mariner"
33+
url: "https://packages.microsoft.com/yumrepos/cbl-mariner-2.0-prod-extended-x86_64/"
34+
pkey: "https://packages.microsoft.com/azurelinux/3.0/prod/base/x86_64/repodata/repomd.xml.key" # Uncomment and replace in real config
35+
1936

2037
disk:
2138
name: Minimal_Raw # 1:1 mapping to the systemConfigs name
@@ -57,4 +74,16 @@ systemConfig:
5774
- kernel-drivers-gpu
5875

5976
immutability:
60-
enabled: false # default is true, overridden to false here
77+
enabled: false # default is true, overridden to false here
78+
packages:
79+
- sqlite
80+
- curl
81+
- nano
82+
- paho-mqtt-c
83+
- ffmpeg
84+
- gstreamer
85+
- opencv
86+
- intel-dlstreamer
87+
- openvino-2025.2.0
88+
- linux-firmware-i915
89+
# - tdnf

internal/image/imageos/imageos.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -964,30 +964,25 @@ func buildImageUKI(installRoot string, template *config.ImageTemplate) error {
964964
} else {
965965
log.Errorf("Install Root does not exist at %s", installRoot)
966966
}
967-
if _, err := os.Stat(kernelPath); err == nil {
968-
log.Infof("kernelPath Exists at %s", kernelPath)
969-
} else {
970-
log.Errorf("Install Root does not exist at %s", installRoot)
971-
}
972967

973-
if _, err := os.Stat(kernelPath); err == nil {
968+
if _, err := os.Stat(filepath.Join(installRoot, kernelPath)); err == nil {
974969
log.Infof("kernelPath Exists at %s", kernelPath)
975970
} else {
976971
log.Errorf("kernelPath does not exist at %s", kernelPath)
977972
}
978973

979-
if _, err := os.Stat(initrdPath); err == nil {
974+
if _, err := os.Stat(filepath.Join(installRoot, initrdPath)); err == nil {
980975
log.Infof("initrdPath Exists at %s", initrdPath)
981976
} else {
982977
log.Errorf("initrdPath does not exist at %s", initrdPath)
983978
}
984-
if _, err := os.Stat(cmdlineFile); err == nil {
979+
if _, err := os.Stat(filepath.Join(installRoot, cmdlineFile)); err == nil {
985980
log.Infof("cmdlineFile Exists at %s", cmdlineFile)
986981
return nil
987982
} else {
988983
log.Errorf("cmdlineFile does not exist at %s", cmdlineFile)
989984
}
990-
if _, err := os.Stat(outputPath); err == nil {
985+
if _, err := os.Stat(filepath.Join(installRoot, outputPath)); err == nil {
991986
log.Infof("outputPath Exists at %s", outputPath)
992987
return nil
993988
} else {

0 commit comments

Comments
 (0)