Please sign in to comment.
tools, pyjailhouse: Fix offline mode of config generator
This addresses three issues that were introduced while factoring out the sysfs parser from the the config generator: - sysfs_parser.root_dir cannot be set from outside of he module - introduce a setter function instead - we need to initialize the root dir prior to performing the jailhouse enabled check - os.path.join drops any earlier elements if a later one is an absolute path - switch back to plain '+' Fixes: 20a8331 ("Splitting up helpers used in sysfs parsing") Signed-off-by: Jan Kiszka <firstname.lastname@example.org>
- Loading branch information...
Showing with 8 additions and 4 deletions.