Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions files/owut
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,9 @@ function complete_build_info(profile, board)

// First, only allow legitimate "sysupgrade" types through.
let images = filter(profile.images, (img) => img.filesystem && img.filesystem != "initramfs" && ! match(img.type, /factory/));
if (length(images) == 0) {
L.die("Cannot find any legitimate 'sysupgrade' image (not 'initramfs' nor 'factory') for that board on the download server.\n");
}

let valid_fstypes = uniq(sort(map(images, (img) => img.filesystem)));
if (! (build.to.fstype in valid_fstypes)) {
Expand Down