summaryrefslogtreecommitdiff
path: root/src/lib/prog_loaders.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prog_loaders.c')
-rw-r--r--src/lib/prog_loaders.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 8a6d6afafa..04b573e5ee 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -44,6 +44,8 @@ int prog_locate(struct prog *prog)
if (cbfs_boot_locate(&file, prog_name(prog), NULL))
return -1;
+ cbfsf_file_type(&file, &prog->cbfs_type);
+
cbfs_file_data(prog_rdev(prog), &file);
return 0;