Skip to content
Snippets Groups Projects
Commit 7dbdc0d8 authored by Ronny Nilsson's avatar Ronny Nilsson
Browse files

When upgrading UBI and no previous kernel is found; ignore

the error if the user appears to know what he is doing. Used
during Iopsys 4 to 5 migration.
parent c123f712
No related branches found
No related tags found
No related merge requests found
......@@ -911,7 +911,10 @@ int gen_image_ubi(char *sequence_number)
}
if(!res) res = ubi_probe();
if(!res) res = meta_find_all();
if(!res) {
res = meta_find_all();
if(res && forcedBank >= 0 && forcedBank <= 1) res = 0; // Ignore errors when user knows what he is doing.
}
if(!res) res = meta_manage_vols(readonly, forcedBank);
// Possibly erase the temporary file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment