File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -587,9 +587,18 @@ func (imageOs *ImageOs) deInitDebLocalRepoWithinInstallRoot(installRoot string)
587587 return nil
588588}
589589
590+ func isDebianBasedTargetOS (targetOS string ) bool {
591+ switch strings .ToLower (strings .TrimSpace (targetOS )) {
592+ case "ubuntu" , "debian" , "wind-river-elxr" , "elxr" :
593+ return true
594+ default :
595+ return false
596+ }
597+ }
598+
590599func preImageOsInstall (installRoot string , template * config.ImageTemplate ) error {
591600 // For Debian-based systems, configure dpkg for target architecture in cross-arch builds
592- if strings . ToLower (template .Target .OS ) == "ubuntu" || strings . ToLower ( template . Target . OS ) == "debian" {
601+ if isDebianBasedTargetOS (template .Target .OS ) {
593602 // Normalize target architecture for dpkg
594603 targetArch := template .Target .Arch
595604 switch targetArch {
You can’t perform that action at this time.
0 commit comments