RFC: add support for building NemOS images to livecd-rootfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
In Progress
|
Low
|
Unassigned |
Bug Description
I discussed a while ago with the Launchpad team about potentially adding support for Kiwi to livecd-rootfs, and thus eventually adding it to Launchpad in the future. I've now looked more closely into this and I've put together a merge proposal [1] with my changes and I'd love to get some feedback.
The idea is to use a checked repository [2] or a package like the one that is build from that repository and available in a PPA [3] as the image configuration. This repository/contains the Kiwi "appliance description", which instructs the Kiwi build tool on how to build the system.
For reference, the upstream Kiwi repository is here [4] and the docs here [5].
I've tested the workflow with the nemos-image .deb package from the PPA and the following commands:
$ ARCH=amd64 SUITE=lunar PROJECT=kiwi SUBPROJECT=
$ ARCH=amd64 SUITE=lunar PROJECT=kiwi SUBPROJECT=
The SUBPROJECT refers to a Kiwi description in /usr/share/kiwi/, but can be overriden to be an arbitrary path by setting the KIWI_DESCRIPTION variable.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
[5] https:/
Related branches
- Loïc Minier: Approve
- Dimitri John Ledkov: Pending requested
- Philip Roche: Pending requested
- Isaac True: Pending requested
- Łukasz Zemczak: Pending requested
-
Diff: 195 lines (+158/-0)3 files modifieddebian/changelog (+6/-0)
live-build/auto/build (+62/-0)
live-build/auto/config (+90/-0)
- Isaac True (community): Abstain
- Łukasz Zemczak: Pending requested
- Loïc Minier: Pending requested
- Philip Roche: Pending requested
-
Diff: 219 lines (+159/-0) (has conflicts)4 files modifieddebian/changelog (+8/-0)
debian/control (+6/-0)
live-build/auto/build (+57/-0)
live-build/auto/config (+88/-0)
- Isaac True (community): Needs Resubmitting
- Łukasz Zemczak: Needs Fixing
- Loïc Minier: Approve
- Philip Roche: Pending requested
-
Diff: 202 lines (+150/-0)4 files modifieddebian/changelog (+6/-0)
debian/control (+3/-0)
live-build/auto/build (+57/-0)
live-build/auto/config (+84/-0)
- Isaac True (community): Needs Resubmitting
- Loïc Minier: Needs Fixing
- Philip Roche: Pending requested
-
Diff: 192 lines (+140/-0)4 files modifieddebian/changelog (+6/-0)
debian/control (+3/-0)
live-build/auto/build (+58/-0)
live-build/auto/config (+73/-0)
- Isaac True (community): Needs Resubmitting
- Philip Roche (community): Needs Information
- Ubuntu Core Development Team: Pending requested
-
Diff: 180 lines (+125/-0)4 files modifieddebian/changelog (+6/-0)
debian/control (+1/-0)
live-build/auto/build (+108/-0)
live-build/auto/config (+10/-0)
Changed in livecd-rootfs (Ubuntu): | |
status: | New → In Progress |
Changed in livecd-rootfs (Ubuntu): | |
assignee: | Loïc Minier (lool) → nobody |
importance: | Undecided → Low |
I have rearchitected the patchset to be more NemOS-specific, rather than allowing any arbitrary Kiwi image to be built.
Now, instead of passing a path to an image description in the SUBPROJECT, it should be one of the predefined values which denote which kind of image should be built. Furthermore, PROJECT should now be set to nemos rather than kiwi.
SUBARCH support has also been added to support different kinds of hardware platforms.
E.g. for a generic amd64 reference image with all features enabled:
env ARCH=amd64 SUITE=lunar PROJECT=nemos SUBPROJECT= reference live-build/ auto/config
or for a minimal arm64 image for the NXP S32G2 platform
env ARCH=arm64 SUBARCH=nxp-s32g2 SUITE=lunar PROJECT=nemos SUBPROJECT=minimal live-build/ auto/config
or for a generic arm64 reference image with all features enabled and extra development tools:
env ARCH=arm64 SUITE=lunar PROJECT=nemos SUBPROJECT= reference- development live-build/ auto/config