Bug 9886 - systemd-boot: Support construct direct-boot image with sd-boot in wic and wks
Summary: systemd-boot: Support construct direct-boot image with sd-boot in wic and wks
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-oe-core (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.2 M2
Assignee: Jianxun Zhang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 9707
  Show dependency tree
 
Reported: 2016-07-06 16:56 UTC by Jianxun Zhang
Modified: 2016-08-03 00:16 UTC (History)
2 users (show)

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


Attachments
0001-wic-add-systemd-boot-option-in-EFI-boot-image-plugin.patch (2.58 KB, patch)
2016-07-08 00:04 UTC, Jianxun Zhang
no flags Details | Diff
0002-wic-clone-gummiboot-wks-for-systemd-boot.patch (3.11 KB, application/octet-stream)
2016-07-08 00:05 UTC, Jianxun Zhang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jianxun Zhang 2016-07-06 16:56:04 UTC
The systemd-boot is enabled in OE, undocumented yet. We need to change wic and add new plugin (wks) so that people can construct direct-boot images with sd-boot like what we have for gummitboot.


This work should be done prior to an overall document update.

The intention is to replace gummiboot with sd-boot any time in the future. But we should keep gummiboot function along with new sd-boot until the replacement covers all features and test around gummitboot.
Comment 1 Jianxun Zhang 2016-07-08 00:04:45 UTC
Created attachment 3276 [details]
0001-wic-add-systemd-boot-option-in-EFI-boot-image-plugin.patch
Comment 2 Jianxun Zhang 2016-07-08 00:05:27 UTC
Created attachment 3277 [details]
0002-wic-clone-gummiboot-wks-for-systemd-boot.patch
Comment 3 Jianxun Zhang 2016-07-08 18:26:36 UTC
I have sent two patches in attachment to OE mailing list after a very basic test.
Comment 4 Jianxun Zhang 2016-08-01 21:24:21 UTC
The two patches (V1) has been merged into OE so I think we could close this ticket since functionality is available with mksystemd-bootdisk.wks.

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123666.html
http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123665.html

Another following patch to be merged renames wks file to systemd-bootdisk.wks:
http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124327.html

For validation, depending one which wks file your OE tip contains, you run:

wic create mksystemd-bootdisk -e core-image-minimal
or
wic create systemd-bootdisk -e core-image-minimal
Comment 5 Scott Rifenbark 2016-08-01 21:37:55 UTC
If this affects YP user documentation, can a separate bug be filed to indicate that?  

Thanks, 
Scott
Comment 6 Jianxun Zhang 2016-08-01 22:57:12 UTC
Scott,
I am not sure if this really affects document although it is one of multiple steps to replace gummiboot with systemd-boot. (Ref to blocked 9707).

I checked dev manual for wic section. It makes some examples like "wic list images" and "wic create ...", but I don't see a completed list of wks files is required in document.

Have you seen another place to confirm this? I could miss anywhere in document.

BTW, 9707 is for whole document update once every functionality of new systemd-boot is ready to replace gummiboot.
Comment 7 Scott Rifenbark 2016-08-02 15:54:13 UTC
Hi Ji, 

So Bug 9707 lists out the sections in the manual that I think would be affected.  I will just defer to Bug 9707 for doc changes this Bug 9886 specifies "Don't Know" for the doc flag.  Maybe you can set that to "No" and we will address the doc issues in Bug 9707.  Does that work?

Scott
Comment 8 Jianxun Zhang 2016-08-03 00:16:37 UTC
Sure, Scott. I just realize its old value so probably why you stepped into this. I have changed it to "No" and we will address any document change in 9707 for the replacement.