Bug 12751 - Rocko needs backport of custom.xml issue (bug 12554)
Summary: Rocko needs backport of custom.xml issue (bug 12554)
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4.3
Assignee: David Reyna
QA Contact: Toaster default assignee
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-05-15 11:23 UTC by David Reyna
Modified: 2018-06-14 15:14 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Fixed checksetting file (7.04 KB, application/octet-stream)
2018-05-15 11:23 UTC, David Reyna
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2018-05-15 11:23:41 UTC
Created attachment 4302 [details]
Fixed checksetting file

1. Rocko needs the patch from bug 12554, which was only applied to master/sumo.

2. Here is the workaround

Copy the attached file to "bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py"


3. Here is the patch:

diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py b/bitbake/lib/toaster/bldcontrol/management/commands/checks
index 582114a..823c6f1 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -107,7 +107,10 @@ class Command(BaseCommand):
                                 action="ignore",
                                 message="^.*No fixture named.*$")
                             print("Importing custom settings if present")
-                            call_command("loaddata", "custom")
+                            try:
+                                call_command("loaddata", "custom")
+                            except:
+                                print("NOTE: optional fixture 'custom' not found")
 
                         # we run lsupdates after config update
                         print("\nFetching information from the layer index, "